mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-02-04 04:40:25 +01:00
touchpad: remove a leftover check for fake resolution
obsolete since 8658ff159d. And once we remove
that all we checkf or is Apple models which we set a resolution for in
systemd. So that check is obsolete now too.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
32f298c127
commit
4ca70c813f
1 changed files with 5 additions and 10 deletions
|
|
@ -1464,18 +1464,13 @@ tp_init_palmdetect(struct tp_dispatch *tp,
|
|||
|
||||
/* Wacom doesn't have internal touchpads,
|
||||
* Apple touchpads are always big enough to warrant palm detection */
|
||||
if (device->model == EVDEV_MODEL_WACOM_TOUCHPAD) {
|
||||
if (device->model == EVDEV_MODEL_WACOM_TOUCHPAD)
|
||||
return 0;
|
||||
} else if (device->model != EVDEV_MODEL_APPLE_TOUCHPAD) {
|
||||
/* We don't know how big the touchpad is */
|
||||
if (device->abs.absinfo_x->resolution == 1)
|
||||
return 0;
|
||||
|
||||
/* Enable palm detection on touchpads >= 70 mm. Anything smaller
|
||||
probably won't need it, until we find out it does */
|
||||
if (width/device->abs.absinfo_x->resolution < 70)
|
||||
return 0;
|
||||
}
|
||||
/* Enable palm detection on touchpads >= 70 mm. Anything smaller
|
||||
probably won't need it, until we find out it does */
|
||||
if (width/device->abs.absinfo_x->resolution < 70)
|
||||
return 0;
|
||||
|
||||
/* palm edges are 5% of the width on each side */
|
||||
tp->palm.right_edge = device->abs.absinfo_x->maximum - width * 0.05;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue