]> Dogcows Code - chaz/openbox/blobdiff - openbox/keyboard.c
Add theme options for menu line separators.
[chaz/openbox] / openbox / keyboard.c
index 82d6dfdcdc878bddb3a140802e8397f9f29d51cf..c318a4cf14b0f0b31dbf5ed8f5c638811c80d191 100644 (file)
@@ -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),
-                         GrabModeAsync);
+                         GrabModeSync);
             p = p->next_sibling;
         }
         if (curpos)
             grab_key(config_keyboard_reset_keycode,
                      config_keyboard_reset_state,
-                     RootWindow(ob_display, ob_screen), GrabModeAsync);
+                     RootWindow(ob_display, ob_screen), GrabModeSync);
     }
 }
 
@@ -263,6 +263,8 @@ void keyboard_event(ObClient *client, const XEvent *e)
         }
         p = p->next_sibling;
     }
+
+    XAllowEvents(ob_display, AsyncKeyboard, event_curtime);
 }
 
 static void node_rebind(KeyBindingTree *node)
@@ -279,7 +281,6 @@ static void node_rebind(KeyBindingTree *node)
     }
     else {
         /* for leaf nodes, rebind each action assigned to it */
-        GSList *it;
         while (node->actions) {
             /* add each action, and remove them from the original tree so
                they don't get free'd on us */
This page took 0.024657 seconds and 4 git commands to generate.