]> Dogcows Code - chaz/openbox/commitdiff
Don't use GrabModeSync, it hangs the xserver on chains sometimes.
authorMikael Magnusson <mikachu@comhem.se>
Wed, 19 Mar 2008 11:49:50 +0000 (12:49 +0100)
committerMikael Magnusson <mikachu@comhem.se>
Tue, 15 Apr 2008 16:16:55 +0000 (18:16 +0200)
More or less a revert of 5bfa48dcffec3b00d119d851cb2427a43f80aa7b
"Grab key bindings with GrabModeSync"
See also bug #3582.

openbox/keyboard.c

index e62cff8abf858160869484ef53aba2fa754c7c9b..8c5b55437acd5338f7ba1ceb0980eaa9de378a51 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),
-                         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)
This page took 0.023709 seconds and 4 git commands to generate.