summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2016-05-18 07:35:36 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2016-05-18 07:35:36 +1000
commit2f5231cc88fccf389a78270d827f6c9201b86794 (patch)
treeb5be39d19e16b708a67a27db80bc27dd002a6ebd /src
parent8527242ed9bdfc97ba248d3e36a1641213e62ca2 (diff)
touchpad: only use negative pressure change check on Lenovo *50 and *60 series
This was introduced for bug 94379 - an X1 Carbon 3rd. Other touchpads have different pressure change ranges, causing this condition to trigger randomly and resulting in a jerky pointer motion. For now, reduce the check to the *50 and *60 series touchpads until we have data for more touchpads that we can add one-by-one. https://bugs.freedesktop.org/show_bug.cgi?id=95393 Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Diffstat (limited to 'src')
-rw-r--r--src/evdev-mt-touchpad.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/evdev-mt-touchpad.c b/src/evdev-mt-touchpad.c
index 4c8c3a3a..c8540439 100644
--- a/src/evdev-mt-touchpad.c
+++ b/src/evdev-mt-touchpad.c
@@ -928,6 +928,7 @@ 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;
@@ -953,7 +954,8 @@ tp_process_state(struct tp_dispatch *tp, uint64_t time)
if (!t->dirty)
continue;
- if (t->pressure_delta < -7)
+ if ((device->model_flags & EVDEV_MODEL_LENOVO_T450_TOUCHPAD) &&
+ t->pressure_delta < -7)
tp_motion_history_reset(t);
if (tp_detect_jumps(tp, t)) {