Don't use GrabModeSync, it hangs the xserver on chains sometimes.

More or less a revert of 5bfa48dcff
"Grab key bindings with GrabModeSync"
See also bug #3582.
This commit is contained in:
Mikael Magnusson 2008-03-19 12:49:50 +01:00
parent fe7e51af32
commit 92bba40cf2

View file

@ -53,13 +53,13 @@ static void grab_keys(gboolean grab)
while (p) { while (p) {
if (p->key) if (p->key)
grab_key(p->key, p->state, RootWindow(ob_display, ob_screen), grab_key(p->key, p->state, RootWindow(ob_display, ob_screen),
GrabModeSync); GrabModeAsync);
p = p->next_sibling; p = p->next_sibling;
} }
if (curpos) if (curpos)
grab_key(config_keyboard_reset_keycode, grab_key(config_keyboard_reset_keycode,
config_keyboard_reset_state, config_keyboard_reset_state,
RootWindow(ob_display, ob_screen), GrabModeSync); RootWindow(ob_display, ob_screen), GrabModeAsync);
} }
} }
@ -263,8 +263,6 @@ void keyboard_event(ObClient *client, const XEvent *e)
} }
p = p->next_sibling; p = p->next_sibling;
} }
XAllowEvents(ob_display, AsyncKeyboard, event_curtime);
} }
static void node_rebind(KeyBindingTree *node) static void node_rebind(KeyBindingTree *node)