X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;ds=sidebyside;f=openbox%2Fkeyboard.c;h=8c5b55437acd5338f7ba1ceb0980eaa9de378a51;hb=0c0ddc36289f39ee32347e775147e7300ce6cf89;hp=c318a4cf14b0f0b31dbf5ed8f5c638811c80d191;hpb=5bfa48dcffec3b00d119d851cb2427a43f80aa7b;p=chaz%2Fopenbox diff --git a/openbox/keyboard.c b/openbox/keyboard.c index c318a4cf..8c5b5543 100644 --- a/openbox/keyboard.c +++ b/openbox/keyboard.c @@ -53,13 +53,13 @@ static void grab_keys(gboolean grab) while (p) { if (p->key) grab_key(p->key, p->state, RootWindow(ob_display, ob_screen), - GrabModeSync); + GrabModeAsync); p = p->next_sibling; } if (curpos) grab_key(config_keyboard_reset_keycode, 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; } - - XAllowEvents(ob_display, AsyncKeyboard, event_curtime); } static void node_rebind(KeyBindingTree *node) @@ -326,4 +324,3 @@ void keyboard_shutdown(gboolean reconfig) popup_free(popup); popup = NULL; } -