Signed-off-by: Peter Hutterer <[email protected]>
---
Xi/xiallowev.c | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
diff --git a/Xi/xiallowev.c b/Xi/xiallowev.c
index aadcf62..95eef40 100644
--- a/Xi/xiallowev.c
+++ b/Xi/xiallowev.c
@@ -52,7 +52,12 @@ SProcXIAllowEvents(ClientPtr client)
swaps(&stuff->length);
swaps(&stuff->deviceid);
swapl(&stuff->time);
- /* FIXME swap touchid */
+
+ if (stuff->length >= 4) /* XI 2.2+ has touchid */
+ {
+ uint32_t *touchid = (uint32_t*)&stuff[1];
+ swapl(touchid);
+ }
return ProcXIAllowEvents(client);
}
--
1.7.7.5
_______________________________________________
[email protected]: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: http://lists.x.org/mailman/listinfo/xorg-devel