From: Dana Jansens Date: Sun, 13 Jan 2008 07:50:34 +0000 (-0500) Subject: sync when killing all keyboard grabs, so that we can be sure they are gone before... X-Git-Url: https://git.dogcows.com/gitweb?a=commitdiff_plain;h=5148b839fefe16b54f26bc0d2c7a500127cf2725;p=chaz%2Fopenbox sync when killing all keyboard grabs, so that we can be sure they are gone before proceeding (fixes a race condition when running things that want to grab the keyboard very quickly. yes, arch is that fast somehow..) --- diff --git a/openbox/event.c b/openbox/event.c index 04ecf383..44e0f532 100644 --- a/openbox/event.c +++ b/openbox/event.c @@ -1997,6 +1997,8 @@ void event_cancel_all_key_grabs(void) } else ungrab_passive_key(); + + XSync(ob_display, FALSE); } gboolean event_time_after(Time t1, Time t2)