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

Peter Hutterer peter.hutterer at who-t.net
Tue Jan 4 19:46:58 PST 2011


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 <daniel at fooishbar.org>

Reviewed-by: Peter Hutterer <peter.hutterer at who-t.net>


> ---
>  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