Fix issue where rapid window crossing events might get ignored.

This commit is contained in:
Reginald Kennedy 2012-11-11 13:00:30 +08:00
parent 214aca697c
commit 9d5207775b

View file

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