libX11: XCheckTypedEvent doesn't store event cookies
Philipp Reh
sefi at s-e-f-i.de
Sat Dec 11 03:10:22 PST 2010
I tried to process GenericEvents via XCheckTypedEvent.
The event is extracted but XGetEventData fails.
The reason is that XCheckTypedEvent doesn't call _XStoreEventCookie.
Is this intentional? The following patch fixed it for me:
--- src/ChkTypEv.c 2010-09-22 03:25:24.000000000 +0200
+++ src/ChkTypEv.c 2010-12-10 17:48:20.000000000 +0100
@@ -57,6 +57,7 @@
if (qelt->event.type == type) {
*event = qelt->event;
_XDeq(dpy, prev, qelt);
+ _XStoreEventCookie(dpy, event);
UnlockDisplay(dpy);
return True;
}
More information about the xorg-devel
mailing list