[PATCH xserver] dix: Set XITouchEmulatingPointer on events from the touch sequence emulating pointer events

Peter Hutterer peter.hutterer at who-t.net
Thu Jan 5 19:52:46 PST 2012


On Tue, Jan 03, 2012 at 02:43:40AM +0100, carlosg at gnome.org wrote:
> From: Carlos Garnacho <carlosg at gnome.org>
> 
> The internal flag is kept around, merely translated to XITouchEmulatingPointer
> when creating the XI2 events that will be delivered to the client.
> 
> Signed-off-by: Carlos Garnacho <carlosg at gnome.org>

thanks, merged this locally

Cheers,
  Peter

> ---
>  dix/eventconvert.c |    4 ++++
>  1 files changed, 4 insertions(+), 0 deletions(-)
> 
> diff --git a/dix/eventconvert.c b/dix/eventconvert.c
> index 017c871..60dc22f 100644
> --- a/dix/eventconvert.c
> +++ b/dix/eventconvert.c
> @@ -691,6 +691,10 @@ eventToDeviceEvent(DeviceEvent *ev, xEvent **xi)
>      else
>          xde->flags = ev->flags;
>  
> +    if (IsTouchEvent((InternalEvent*)ev) &&
> +        ev->flags & TOUCH_POINTER_EMULATED)
> +        xde->flags |= XITouchEmulatingPointer;
> +
>      if (ev->key_repeat)
>          xde->flags      |= XIKeyRepeat;
>  
> -- 
> 1.7.7.4
> 


More information about the xorg-devel mailing list