From 97ce872e3a490a8ed1a043593fd4bb8132e10bf9 Mon Sep 17 00:00:00 2001 From: Mikael Magnusson Date: Wed, 19 Mar 2008 12:49:50 +0100 Subject: [PATCH] Don't use GrabModeSync, it hangs the xserver on chains sometimes. --- openbox/keyboard.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/openbox/keyboard.c b/openbox/keyboard.c index ca3992d5..2f869de5 100644 --- a/openbox/keyboard.c +++ b/openbox/keyboard.c @@ -51,13 +51,13 @@ static void grab_keys(gboolean grab) while (p) { if (p->key && p->grab) grab_key(p->key, p->state, obt_root(ob_screen), - GrabModeSync); + GrabModeAsync); p = p->next_sibling; } if (curpos) grab_key(config_keyboard_reset_keycode, config_keyboard_reset_state, - obt_root(ob_screen), GrabModeSync); + obt_root(ob_screen), GrabModeAsync); } } @@ -261,8 +261,6 @@ void keyboard_event(ObClient *client, const XEvent *e) } p = p->next_sibling; } - - XAllowEvents(obt_display, AsyncKeyboard, event_curtime); } static void node_rebind(KeyBindingTree *node) -- 2.34.1