summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilipp Reh <sefi@s-e-f-i.de>2010-12-22 15:14:05 +0000
committerDaniel Stone <daniel@fooishbar.org>2010-12-22 15:19:12 +0000
commit0012e2a4eaddc0840617b4758931ad976ca2eb7c (patch)
treef47a9a28edc6ee168171ab6c27817dc64da22205
parentd2714d65e85b44abedf5f82e1a31506dba397ef2 (diff)
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>
-rw-r--r--src/ChkTypEv.c1
-rw-r--r--src/ChkTypWEv.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/ChkTypEv.c b/src/ChkTypEv.c
index 8ca1c804..2e9bcdd0 100644
--- a/src/ChkTypEv.c
+++ b/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/src/ChkTypWEv.c b/src/ChkTypWEv.c
index 92b3f5d9..2f247be2 100644
--- a/src/ChkTypWEv.c
+++ b/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;
}