[PATCH libinput 1/2] touchpad: fix pinned finger drifting
Hans de Goede
hdegoede at redhat.com
Mon Jun 15 00:53:26 PDT 2015
Hi,
On 15-06-15 06:40, Peter Hutterer wrote:
> This caused the finger to be unpinned on the first motion event after the
> click, effectively disabling this feature.
>
> Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
Oops, my bad (IIRC), looks good to me:
Reviewed-by: Hans de Goede <hdegoede at redhat.com>
Regards,
Hans
> ---
> src/evdev-mt-touchpad.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/src/evdev-mt-touchpad.c b/src/evdev-mt-touchpad.c
> index c82d733..ce79530 100644
> --- a/src/evdev-mt-touchpad.c
> +++ b/src/evdev-mt-touchpad.c
> @@ -440,8 +440,8 @@ tp_unpin_finger(struct tp_dispatch *tp, struct tp_touch *t)
> }
>
> /* The finger may slowly drift, adjust the center */
> - t->pinned.center.x = t->point.x + t->pinned.center.x / 2;
> - t->pinned.center.y = t->point.y + t->pinned.center.y / 2;
> + t->pinned.center.x = (t->point.x + t->pinned.center.x)/2;
> + t->pinned.center.y = (t->point.y + t->pinned.center.y)/2;
> }
>
> static void
>
More information about the wayland-devel
mailing list