summaryrefslogtreecommitdiff
path: root/src
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
parentfa2fa9692587a431399ce3786f3b1e970b5e244e (diff)
downloadratpoison-cc35f0778f427e43f00d735576e7044514950605.zip
grab top level key bindings asynchronously
Diffstat (limited to 'src')
-rw-r--r--src/events.c3
-rw-r--r--src/input.c5
2 files changed, 1 insertions, 7 deletions
diff --git a/src/events.c b/src/events.c
index e52acf4..0e122a2 100644
--- a/src/events.c
+++ b/src/events.c
@@ -433,9 +433,6 @@ handle_key (KeySym ks, unsigned int mod, rp_screen *s)
{
PRINT_DEBUG(("Impossible: No matching key"));
}
-
- /* All keys have been read so now we let the keyboard go. */
- XAllowEvents (dpy, AsyncKeyboard, CurrentTime);
}
static void
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);