]> code.delx.au - spectrwm/blobdiff - spectrwm.c
Fix issue where rapid window crossing events might get ignored.
[spectrwm] / 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