[PATCH 27/29] Xi: swap sequence number and evtype in barrier events

Peter Hutterer peter.hutterer at who-t.net
Tue Dec 11 23:19:20 PST 2012


Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
---
 Xi/extinit.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/Xi/extinit.c b/Xi/extinit.c
index 175d89b..606d61c 100644
--- a/Xi/extinit.c
+++ b/Xi/extinit.c
@@ -847,7 +847,9 @@ SBarrierEvent(xXIBarrierEvent * from,
               xXIBarrierEvent * to) {
     to->type = from->type;
 
+    cpswaps(from->sequenceNumber, to->sequenceNumber);
     cpswapl(from->length, to->length);
+    cpswaps(from->evtype, to->evtype);
     cpswapl(from->time, to->time);
     cpswaps(from->deviceid, to->deviceid);
     cpswaps(from->sourceid, to->sourceid);
-- 
1.8.0.1



More information about the xorg-devel mailing list