Signed-off-by: Peter Hutterer <[email protected]>
---
 Xi/xiallowev.c |    9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/Xi/xiallowev.c b/Xi/xiallowev.c
index 8b88e67..3a2be42 100644
--- a/Xi/xiallowev.c
+++ b/Xi/xiallowev.c
@@ -48,12 +48,17 @@ int
 SProcXIAllowEvents(ClientPtr client)
 {
     REQUEST(xXIAllowEventsReq);
+    uint32_t *extra_data;
 
     swaps(&stuff->length);
     swaps(&stuff->deviceid);
     swapl(&stuff->time);
-    /* FIXME swap touchid */
-    /* FIXME swap window */
+    if (stuff->length > 3)
+    {
+        extra_data = (uint32_t*)&stuff[1];
+        swapl(&extra_data[0]); /* touchid */
+        swapl(&extra_data[1]); /* window */
+    }
 
     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

Reply via email to