]> Dogcows Code - chaz/openbox/blobdiff - openbox/keyboard.c
Merge branch 'backport' into work
[chaz/openbox] / openbox / keyboard.c
index 02ae6a304642ef4ce7a735ca0a55c827393f6e34..5ac423639c35628036133ece70dc9279ac94770a 100644 (file)
@@ -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),
-                         GrabModeAsync);
+                         GrabModeSync);
             p = p->next_sibling;
         }
         if (curpos)
             grab_key(config_keyboard_reset_keycode,
                      config_keyboard_reset_state,
-                     obt_root(ob_screen), GrabModeAsync);
+                     obt_root(ob_screen), GrabModeSync);
     }
 }
 
@@ -261,6 +261,8 @@ void keyboard_event(ObClient *client, const XEvent *e)
         }
         p = p->next_sibling;
     }
+
+    XAllowEvents(obt_display, AsyncKeyboard, event_curtime);
 }
 
 static void node_rebind(KeyBindingTree *node)
This page took 0.020525 seconds and 4 git commands to generate.