Only attempt to snap to a window if it's visible; this should hopefully prevent us...