mirror of
https://gitlab.freedesktop.org/xorg/lib/libx11.git
synced 2026-05-09 02:38:12 +02:00
Events: Store event cookie when dequeuing event
When we dequeue an event in XCheckTypedEvent or XCheckTypedWindowEvent, make sure to store the corresponding cookie too. Signed-off-by: Philipp Reh <sefi@s-e-f-i.de> Reviewed-by: Daniel Stone <daniel@fooishbar.org>
This commit is contained in:
parent
d2714d65e8
commit
0012e2a4ea
2 changed files with 2 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -59,6 +59,7 @@ Bool XCheckTypedWindowEvent (
|
|||
(qelt->event.type == type)) {
|
||||
*event = qelt->event;
|
||||
_XDeq(dpy, prev, qelt);
|
||||
_XStoreEventCookie(dpy, event);
|
||||
UnlockDisplay(dpy);
|
||||
return True;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue