[PATCH libinput 2/4] Revert "touchpad: only use negative pressure change check on Lenovo *50 and *60 series"

Peter Hutterer peter.hutterer at who-t.net
Fri Jun 17 03:17:39 UTC 2016


We will reinstate the hysteresis for all devices making the negative pressure
check unncessary and thus this commit as well.

This reverts commit 2f5231cc88fccf389a78270d827f6c9201b86794.
---
 src/evdev-mt-touchpad.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/src/evdev-mt-touchpad.c b/src/evdev-mt-touchpad.c
index fdc5319..1a58d5e 100644
--- a/src/evdev-mt-touchpad.c
+++ b/src/evdev-mt-touchpad.c
@@ -1018,7 +1018,6 @@ tp_detect_jumps(const struct tp_dispatch *tp, struct tp_touch *t)
 static void
 tp_process_state(struct tp_dispatch *tp, uint64_t time)
 {
-	struct evdev_device *device = tp->device;
 	struct tp_touch *t;
 	unsigned int i;
 	bool restart_filter = false;
@@ -1044,8 +1043,7 @@ tp_process_state(struct tp_dispatch *tp, uint64_t time)
 		if (!t->dirty)
 			continue;
 
-		if ((device->model_flags & EVDEV_MODEL_LENOVO_T450_TOUCHPAD) &&
-		    t->pressure_delta < -7)
+		if (t->pressure_delta < -7)
 			tp_motion_history_reset(t);
 
 		if (tp_detect_jumps(tp, t)) {
-- 
2.7.4



More information about the wayland-devel mailing list