[PATCH xserver 01/17] Input: Swap flags in DeviceEvents

Daniel Stone daniel at fooishbar.org
Tue Dec 28 09:57:52 PST 2010


Swap flags for different-endian clients when delivering XI2
DeviceEvents.

Signed-off-by: Daniel Stone <daniel at fooishbar.org>
---
 Xi/extinit.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/Xi/extinit.c b/Xi/extinit.c
index 546ccb4..82df7eb 100644
--- a/Xi/extinit.c
+++ b/Xi/extinit.c
@@ -757,6 +757,7 @@ static void SDeviceEvent(xXIDeviceEvent *from, xXIDeviceEvent *to)
     swapl(&to->mods.latched_mods, n);
     swapl(&to->mods.locked_mods, n);
     swapl(&to->mods.effective_mods, n);
+    swapl(&to->flags, n);
 
     ptr = (char*)(&to[1]);
     ptr += from->buttons_len * 4;
-- 
1.7.2.3



More information about the xorg-devel mailing list