summaryrefslogtreecommitdiff
path: root/openbox
diff options
context:
space:
mode:
authorMikael Magnusson <mikachu@comhem.se>2008-03-19 12:49:50 +0100
committerMikael Magnusson <mikachu@comhem.se>2008-04-15 18:16:55 +0200
commit92bba40cf21cb13aad1fccb421e131ea3049688f (patch)
tree51526a083f3d1608ff82d1599b47296d5a8a53a2 /openbox
parentfe7e51af32fecb116a4bfce57dc95ad111c4333a (diff)
Don't use GrabModeSync, it hangs the xserver on chains sometimes.
More or less a revert of 5bfa48dcffec3b00d119d851cb2427a43f80aa7b "Grab key bindings with GrabModeSync" See also bug #3582.
Diffstat (limited to 'openbox')
-rw-r--r--openbox/keyboard.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/openbox/keyboard.c b/openbox/keyboard.c
index e62cff8a..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)