summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog9
-rw-r--r--src/events.c1
-rw-r--r--src/input.c2
3 files changed, 11 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 7590561..54617ae 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2006-04-02 Shawn Betts <sabetts@vcn.bc.ca>
+
+ * src/events.c (handle_key): call XAllowEvents
+
+2006-04-01 Shawn Betts <sabetts@vcn.bc.ca>
+
+ * src/input.c (grab_key): grab the keyboard synchronously
+
+
2006-03-16 Ryan Yeske <rcyeske@gmail.com>
* doc/ratpoison.texi (Groups): Fix description of gnew command.
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);
}
}