forked from pool/libinput
Jan Engelhardt
8dba41de7e
OBS-URL: https://build.opensuse.org/package/show/X11:Wayland/libinput?expand=0&rev=116
24 lines
806 B
Diff
24 lines
806 B
Diff
From: badshah400@gmail.com
|
|
|
|
Fix pressure sensitivity for ELANTECH touchpads causing uncomfortable
|
|
two-finger taps, scrolls.
|
|
|
|
References: http://bugzilla.opensuse.org/1034335
|
|
References: http://bugs.freedesktop.orgs/100463
|
|
|
|
Index: libinput-1.7.0/src/evdev-mt-touchpad.c
|
|
===================================================================
|
|
--- libinput-1.7.0.orig/src/evdev-mt-touchpad.c
|
|
+++ libinput-1.7.0/src/evdev-mt-touchpad.c
|
|
@@ -2383,8 +2383,8 @@ tp_init_pressure(struct tp_dispatch *tp,
|
|
range = abs->maximum - abs->minimum;
|
|
|
|
if (device->model_flags & EVDEV_MODEL_ELANTECH_TOUCHPAD) {
|
|
- tp->pressure.high = 24;
|
|
- tp->pressure.low = 10;
|
|
+ tp->pressure.high = 10;
|
|
+ tp->pressure.low = 8;
|
|
} else if (device->model_flags & EVDEV_MODEL_CYAPA) {
|
|
tp->pressure.high = 10;
|
|
tp->pressure.low = 8;
|