summaryrefslogtreecommitdiff
path: root/src/input.c
diff options
context:
space:
mode:
authorShawn <sabetts@juicebox>2008-02-19 16:53:23 -0800
committerShawn <sabetts@juicebox>2008-02-19 16:53:23 -0800
commitcc35f0778f427e43f00d735576e7044514950605 (patch)
tree006e51a3198bb0339a0d9b53206387f7599b28cb /src/input.c
parentfa2fa9692587a431399ce3786f3b1e970b5e244e (diff)
downloadratpoison-cc35f0778f427e43f00d735576e7044514950605.zip
grab top level key bindings asynchronously
Diffstat (limited to 'src/input.c')
-rw-r--r--src/input.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/input.c b/src/input.c
index d0c9df6..d1ae47c 100644
--- a/src/input.c
+++ b/src/input.c
@@ -289,7 +289,7 @@ grab_key (KeySym keysym, unsigned int modifiers, Window grab_window)
for (i=0; i<8; i++)
{
XGrabKey(dpy, keycode, modifiers | mod_list[i],
- grab_window, True, GrabModeAsync, GrabModeSync);
+ grab_window, True, GrabModeAsync, GrabModeAsync);
}
}
@@ -413,9 +413,6 @@ read_key (KeySym *keysym, unsigned int *modifiers, char *keysym_name, int len)
/* Read a key from the keyboard. */
do
{
- /* The keyboard is frozen, so unfreeze it and allow another key to come in. */
- XAllowEvents (dpy, SyncKeyboard, CurrentTime);
-
XMaskEvent (dpy, KeyPressMask|KeyRelease, &ev);
*modifiers = ev.xkey.state;
nbytes = cook_keycode (&ev.xkey, keysym, modifiers, keysym_name, len, 0);