From 151d44149a09dd125e25b3d94f22a609f0221548 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Mon, 10 Dec 2012 10:53:49 +1000 Subject: [PATCH] Xi: swap sequence number and evtype in barrier events Signed-off-by: Peter Hutterer Reviewed-by: Jasper St. Pierre --- Xi/extinit.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Xi/extinit.c b/Xi/extinit.c index 175d89b00..606d61c88 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);