[PATCH libinput 1/2] touchpad: a touch in TOUCH_NONE doesn't need to be ended

Hans de Goede hdegoede at redhat.com
Thu Apr 9 05:47:07 PDT 2015


Hi,

On 09-04-15 07:27, Peter Hutterer wrote:
> Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>

Both patches look good, I've added my Rev-by and pushed them.

Regards,

Hans


> ---
>   src/evdev-mt-touchpad.c | 3 ++-
>   1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/src/evdev-mt-touchpad.c b/src/evdev-mt-touchpad.c
> index 19ec99e..0627056 100644
> --- a/src/evdev-mt-touchpad.c
> +++ b/src/evdev-mt-touchpad.c
> @@ -547,7 +547,8 @@ tp_unhover_touches(struct tp_dispatch *tp, uint64_t time)
>   		for (i = tp->ntouches - 1; i >= 0; i--) {
>   			t = tp_get_touch(tp, i);
>
> -			if (t->state == TOUCH_HOVERING)
> +			if (t->state == TOUCH_HOVERING ||
> +			    t->state == TOUCH_NONE)
>   				continue;
>
>   			tp_end_touch(tp, t, time);
>


More information about the wayland-devel mailing list