[PATCH xserver] Xi: don't deliver emulated motion events for non-emulating touches

Peter Hutterer peter.hutterer at who-t.net
Tue Apr 12 05:50:20 UTC 2016


On Wed, Mar 09, 2016 at 12:13:22PM +1000, Peter Hutterer wrote:
> The touchpoint knows whether it should be emulating or not and we have a check
> for that later. Check for this before we generate the event and try to deliver
> it, lest we trigger a bug warning.
> 
> https://bugzilla.redhat.com/show_bug.cgi?id=1282252
> 
> Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>

ping? any volunteers?

Cheers,
   Peter

> ---
>  Xi/exevents.c | 3 +++
>  1 file changed, 3 insertions(+)
> 
> diff --git a/Xi/exevents.c b/Xi/exevents.c
> index 74e49ed..5a0b68d 100644
> --- a/Xi/exevents.c
> +++ b/Xi/exevents.c
> @@ -1379,6 +1379,9 @@ DeliverTouchEmulatedEvent(DeviceIntPtr dev, TouchPointInfoPtr ti,
>      if (!TouchResourceIsOwner(ti, listener->listener))
>          return !Success;
>  
> +    if (!ti->emulate_pointer)
> +        return !Success;
> +
>      nevents = TouchConvertToPointerEvent(ev, &motion, &button);
>      BUG_RETURN_VAL(nevents == 0, BadValue);
>  
> -- 
> 2.5.0
> 
> _______________________________________________
> xorg-devel at lists.x.org: X.Org development
> Archives: http://lists.x.org/archives/xorg-devel
> Info: https://lists.x.org/mailman/listinfo/xorg-devel
> 


More information about the xorg-devel mailing list