On Tue, Dec 28, 2010 at 05:57:52PM +0000, Daniel Stone wrote: > Swap flags for different-endian clients when delivering XI2 > DeviceEvents. > > Signed-off-by: Daniel Stone <[email protected]>
Reviewed-by: Peter Hutterer <[email protected]> > --- > 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 > > _______________________________________________ _______________________________________________ [email protected]: X.Org development Archives: http://lists.x.org/archives/xorg-devel Info: http://lists.x.org/mailman/listinfo/xorg-devel
