forked from pool/libinput
Jan Engelhardt
19ae566e38
Fix pressure-sensitivity levels on elantech touchpads. OBS-URL: https://build.opensuse.org/request/show/488184 OBS-URL: https://build.opensuse.org/package/show/X11:Wayland/libinput?expand=0&rev=115
16 lines
583 B
Diff
16 lines
583 B
Diff
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;
|