From 261d3193c5258126fda8234a3305180066f0f939 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Sat, 6 Sep 2003 09:10:43 +0000 Subject: [PATCH] sync before removing all the enter events. this way it actually catches them --- openbox/screen.c | 1 + 1 file changed, 1 insertion(+) diff --git a/openbox/screen.c b/openbox/screen.c index 38ad8978..53dce6e7 100644 --- a/openbox/screen.c +++ b/openbox/screen.c @@ -430,6 +430,7 @@ void screen_set_desktop(guint num) } } + XSync(ob_display, FALSE); /* focus the last focused window on the desktop, and ignore enter events from the switch so it doesnt mess with the focus */ while (XCheckTypedEvent(ob_display, EnterNotify, &e)); -- 2.39.2