aboutsummaryrefslogtreecommitdiff
path: root/libX11/src/MaskEvent.c
diff options
context:
space:
mode:
Diffstat (limited to 'libX11/src/MaskEvent.c')
-rw-r--r--libX11/src/MaskEvent.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libX11/src/MaskEvent.c b/libX11/src/MaskEvent.c
index acd903f9e..14af00cc0 100644
--- a/libX11/src/MaskEvent.c
+++ b/libX11/src/MaskEvent.c
@@ -53,6 +53,10 @@ XMaskEvent (
unsigned long qe_serial = 0;
LockDisplay(dpy);
+
+ /* Delete unclaimed cookies */
+ _XFreeEventCookies(dpy);
+
prev = NULL;
while (1) {
for (qelt = prev ? prev->next : dpy->head;