]> code.delx.au - spectrwm/commitdiff
Fix issue where rapid window crossing events might get ignored.
authorReginald Kennedy <rk@rejii.com>
Sun, 11 Nov 2012 05:00:30 +0000 (13:00 +0800)
committerReginald Kennedy <rk@rejii.com>
Sun, 11 Nov 2012 05:40:40 +0000 (13:40 +0800)
spectrwm.c

index 4530bd71de3db02335b771b9388dfe2359af6247..a565162aec00cea1fae1f9257bbba4d4f3d2a145 100644 (file)
@@ -8209,7 +8209,7 @@ enternotify(xcb_enter_notify_event_t *e)
                        /* If no windows on pointer region, then focus root. */
                        r = root_to_region(e->root, SWM_CK_POINTER);
                        if (r == NULL) {
-                               DNPRINTF(SWM_D_EVENT, "enterntoify: "
+                               DNPRINTF(SWM_D_EVENT, "enternotify: "
                                    "NULL region; ignoring.\n");
                                return;
                        }
@@ -8224,7 +8224,7 @@ enternotify(xcb_enter_notify_event_t *e)
                focus_win(get_focus_magic(win));
        }
 
-       focus_flush();
+       xcb_flush(conn);
 }
 
 #ifdef SWM_DEBUG