summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);