diff options
Diffstat (limited to 'libX11/src')
-rw-r--r-- | libX11/src/ChkTypEv.c | 1 | ||||
-rw-r--r-- | libX11/src/ChkTypWEv.c | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/libX11/src/ChkTypEv.c b/libX11/src/ChkTypEv.c index ccc05edc0..498b29e19 100644 --- a/libX11/src/ChkTypEv.c +++ b/libX11/src/ChkTypEv.c @@ -57,6 +57,7 @@ Bool XCheckTypedEvent ( if (qelt->event.type == type) {
*event = qelt->event;
_XDeq(dpy, prev, qelt);
+ _XStoreEventCookie(dpy, event);
UnlockDisplay(dpy);
return True;
}
diff --git a/libX11/src/ChkTypWEv.c b/libX11/src/ChkTypWEv.c index 84abd6dcc..b0429f084 100644 --- a/libX11/src/ChkTypWEv.c +++ b/libX11/src/ChkTypWEv.c @@ -59,6 +59,7 @@ Bool XCheckTypedWindowEvent ( (qelt->event.type == type)) {
*event = qelt->event;
_XDeq(dpy, prev, qelt);
+ _XStoreEventCookie(dpy, event);
UnlockDisplay(dpy);
return True;
}
|