X-Git-Url: http://git.openbox.org/?p=mikachu%2Fopenbox.git;a=blobdiff_plain;f=openbox%2Fkeyboard.c;h=410eb6e0aaa139bd66967afb6ffae8414a75dafa;hp=a693a71c3d63ca3ea287aec1ce440f16b125c61f;hb=6799c67c07e99c440f549802f60d9f16995ab711;hpb=661a53cb6843d02f3373feab91052c47397bb6ed;ds=sidebyside diff --git a/openbox/keyboard.c b/openbox/keyboard.c index a693a71..410eb6e 100644 --- a/openbox/keyboard.c +++ b/openbox/keyboard.c @@ -51,13 +51,13 @@ static void grab_keys(gboolean grab) while (p) { if (p->key) 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)