From: Dana Jansens Date: Sat, 6 Sep 2003 09:10:43 +0000 (+0000) Subject: sync before removing all the enter events. this way it actually catches them X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=261d3193c5258126fda8234a3305180066f0f939;p=chaz%2Fopenbox sync before removing all the enter events. this way it actually catches them --- 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));