Here is a patch that enables XCheckTypedEvent to properly process 
GenericEvents. Currently GenericEvents are received but XGetEventData fails 
because XCheckTypedEvent doesn't store event cookies.
--- 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;
 		}

_______________________________________________
[email protected]: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: http://lists.x.org/mailman/listinfo/xorg-devel

Reply via email to