aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xchord.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/xchord.c b/xchord.c
index 7df852f..59d3f52 100644
--- a/xchord.c
+++ b/xchord.c
@@ -66,6 +66,8 @@ main(int argc, char *argv[])
/* watch for events */
for (;;) {
+ XNextEvent(dpy, &ev);
+ XPutBackEvent(dpy, &ev);
if (!XCheckTypedEvent(dpy, GenericEvent, &ev))
continue;
if (cookie->type != GenericEvent || !XGetEventData(dpy, cookie))