mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-03-25 00:10:41 +01:00
touchpad: reduce palm detection threshold to 70mm
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@who-t.net> Reviewed-by: Hans de Goede <hdegoede@redhat.com>
This commit is contained in:
parent
39f1125347
commit
26062e8469
2 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue