summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/events.c1
-rw-r--r--src/input.c2
2 files changed, 2 insertions, 1 deletions
diff --git a/src/events.c b/src/events.c
index ad43cfe..084cf9c 100644
--- a/src/events.c
+++ b/src/events.c
@@ -426,6 +426,7 @@ handle_key (KeySym ks, unsigned int mod, rp_screen *s)
{
PRINT_ERROR(("Impossible: No matching key\n"));
}
+ XAllowEvents (dpy, AsyncKeyboard, CurrentTime);
}
static void
diff --git a/src/input.c b/src/input.c
index 37dae0d..5fcb303 100644
--- a/src/input.c
+++ b/src/input.c
@@ -211,7 +211,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, GrabModeASync);
+ grab_window, True, GrabModeAsync, GrabModeSync);
}
}