[PATCH libXI] Add missing XI_RawTouch* in XInputCopyCookie
Peter Hutterer
peter.hutterer at who-t.net
Mon Jan 14 15:39:25 PST 2013
On Mon, Jan 14, 2013 at 06:32:05PM +0100, Benjamin Tissoires wrote:
> 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...
>
> Cheers,
> Benjamin
whoops, thanks. applied.
Cheers,
Peter
>
> 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);
> break;
> case XI_BarrierHit:
> --
> 1.8.0.2
>
More information about the xorg-devel
mailing list