[PATCH libXI] Add missing XI_RawTouch* in XInputCopyCookie

Benjamin Tissoires benjamin.tissoires at gmail.com
Mon Jan 14 09:32:05 PST 2013

Looks like XI_RawTouch* events are missing in the big switch in this function.
When running XIT tests for multitouch devices, several following errors appears:
XInputCopyCookie: Failed to copy evtype 22
XInputCopyCookie: Failed to copy evtype 23
XInputCopyCookie: Failed to copy evtype 24

Signed-off-by: Benjamin Tissoires <benjamin.tissoires at gmail.com>

Hi guys,

well, I'm not 100% sure of this, but at least, it my tests don't print these errors...


 src/XExtInt.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/XExtInt.c b/src/XExtInt.c
index 57d071d..507573b 100644
--- a/src/XExtInt.c
+++ b/src/XExtInt.c
@@ -1484,6 +1484,9 @@ XInputCopyCookie(Display *dpy, XGenericEventCookie *in, XGenericEventCookie *out
         case XI_RawButtonPress:
         case XI_RawButtonRelease:
         case XI_RawMotion:
+        case XI_RawTouchBegin:
+        case XI_RawTouchUpdate:
+        case XI_RawTouchEnd:
             ret = copyRawEvent(in, out);
         case XI_BarrierHit:

More information about the xorg-devel mailing list