From e812b8a4d1c87fbf8f9203646a14e702f16d4cb8 Mon Sep 17 00:00:00 2001 From: sabetts Date: Sun, 2 Apr 2006 08:36:09 +0000 Subject: (handle_key): call XAllowEvents --- src/events.c | 1 + src/input.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'src') 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); } } -- cgit v1.2.3