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

_______________________________________________
wayland-devel mailing list
wayland-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/wayland-devel

Reply via email to