From 9d5207775be4ae435c7836ce59cba4fa0f8ecaac Mon Sep 17 00:00:00 2001 From: Reginald Kennedy Date: Sun, 11 Nov 2012 13:00:30 +0800 Subject: [PATCH] Fix issue where rapid window crossing events might get ignored. --- spectrwm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spectrwm.c b/spectrwm.c index 4530bd7..a565162 100644 --- a/spectrwm.c +++ b/spectrwm.c @@ -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 -- 2.39.2