diff options
author | Philipp Reh <sefi@s-e-f-i.de> | 2010-12-22 15:14:05 +0000 |
---|---|---|
committer | Ulrich Sibiller <uli42@gmx.de> | 2016-10-19 21:40:26 +0200 |
commit | c868061482102f68353a1eea7fdf275f0cd2600b (patch) | |
tree | c1c6e77d09af410172d88d3c115c560560979c91 /nx-X11/lib/X11 | |
parent | 5062342d464eecc35cd39df7dd303dcda86d57cc (diff) | |
download | nx-libs-c868061482102f68353a1eea7fdf275f0cd2600b.tar.gz nx-libs-c868061482102f68353a1eea7fdf275f0cd2600b.tar.bz2 nx-libs-c868061482102f68353a1eea7fdf275f0cd2600b.zip |
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>
Backported-to-NX-by: Ulrich Sibiller <uli42@gmx.de>
Diffstat (limited to 'nx-X11/lib/X11')
-rw-r--r-- | nx-X11/lib/X11/ChkTypEv.c | 1 | ||||
-rw-r--r-- | nx-X11/lib/X11/ChkTypWEv.c | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/nx-X11/lib/X11/ChkTypEv.c b/nx-X11/lib/X11/ChkTypEv.c index 8ca1c8048..2e9bcdd0a 100644 --- a/nx-X11/lib/X11/ChkTypEv.c +++ b/nx-X11/lib/X11/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/nx-X11/lib/X11/ChkTypWEv.c b/nx-X11/lib/X11/ChkTypWEv.c index 92b3f5d94..2f247be26 100644 --- a/nx-X11/lib/X11/ChkTypWEv.c +++ b/nx-X11/lib/X11/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; } |