From 5148b839fefe16b54f26bc0d2c7a500127cf2725 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Sun, 13 Jan 2008 02:50:34 -0500 Subject: [PATCH] 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..) --- openbox/event.c | 2 ++ 1 file changed, 2 insertions(+) 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) -- 2.39.2