From 9a58fa26bae6925b4db8055a9e130139b8ce579d Mon Sep 17 00:00:00 2001 From: Reginald Kennedy Date: Sun, 15 Jul 2012 23:29:20 +0800 Subject: [PATCH] Drain EnterNotify in stack() when appropriate. --- spectrwm.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/spectrwm.c b/spectrwm.c index f2c67fa..2324a48 100644 --- a/spectrwm.c +++ b/spectrwm.c @@ -3059,6 +3059,9 @@ stack(void) { if (font_adjusted) font_adjusted--; + if (focus_mode == SWM_FOCUS_DEFAULT) + event_drain(XCB_ENTER_NOTIFY); + DNPRINTF(SWM_D_STACK, "stack: end\n"); } -- 1.7.10.4