diff options
Diffstat (limited to 'libX11/src/ChkWinEv.c')
-rw-r--r-- | libX11/src/ChkWinEv.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libX11/src/ChkWinEv.c b/libX11/src/ChkWinEv.c index 1fd975cda..b753c5fd8 100644 --- a/libX11/src/ChkWinEv.c +++ b/libX11/src/ChkWinEv.c @@ -54,6 +54,10 @@ Bool XCheckWindowEvent ( int n; /* time through count */ LockDisplay(dpy); + + /* Delete unclaimed cookies */ + _XFreeEventCookies(dpy); + prev = NULL; for (n = 3; --n >= 0;) { for (qelt = prev ? prev->next : dpy->head; |