summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/NextEvent.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/NextEvent.c b/src/NextEvent.c
index 69b979b..71ad354 100644
--- a/src/NextEvent.c
+++ b/src/NextEvent.c
@@ -53,6 +53,12 @@ XNextEvent (
_XDeq(dpy, NULL, qelt);
_XStoreEventCookie(dpy, event);
UnlockDisplay(dpy);
+
+ if (event->type == MotionNotify) {
+ while (XCheckTypedWindowEvent(dpy, event->xmotion.window, MotionNotify, event))
+ ;
+ }
+
return 0;
}