[PATCH libinput 1/1] touchpad: reduce palm detection threshold to 70mm
Hans de Goede
hdegoede at redhat.com
Thu Apr 16 01:03:39 PDT 2015
Hi,
On 16-04-15 08:18, Peter Hutterer wrote:
> https://bugzilla.redhat.com/show_bug.cgi?id=1209753 lists a touchpad 76mm wide
> that suffers from palm touches
>
> Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
Looks good:
Reviewed-by: Hans de Goede <hdegoede at redhat.com>
Regards,
Hans
> ---
> src/evdev-mt-touchpad.c | 2 +-
> test/touchpad.c | 2 +-
> 2 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/src/evdev-mt-touchpad.c b/src/evdev-mt-touchpad.c
> index 4e5a558..452cb85 100644
> --- a/src/evdev-mt-touchpad.c
> +++ b/src/evdev-mt-touchpad.c
> @@ -1135,7 +1135,7 @@ tp_init_palmdetect(struct tp_dispatch *tp,
>
> /* Enable palm detection on touchpads >= 80 mm. Anything smaller
> probably won't need it, until we find out it does */
> - if (width/device->abs.absinfo_x->resolution < 80)
> + if (width/device->abs.absinfo_x->resolution < 70)
> return 0;
> }
>
> diff --git a/test/touchpad.c b/test/touchpad.c
> index cd86f04..4e425f5 100644
> --- a/test/touchpad.c
> +++ b/test/touchpad.c
> @@ -2469,7 +2469,7 @@ touchpad_has_palm_detect_size(struct litest_device *dev)
>
> rc = libinput_device_get_size(dev->libinput_device, &width, &height);
>
> - return rc == 0 && width >= 80;
> + return rc == 0 && width >= 70;
> }
>
> START_TEST(touchpad_palm_detect_at_edge)
>
More information about the wayland-devel
mailing list