summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/evdev-mt-touchpad.c16
-rw-r--r--src/evdev.c2
-rw-r--r--src/evdev.h2
3 files changed, 5 insertions, 15 deletions
diff --git a/src/evdev-mt-touchpad.c b/src/evdev-mt-touchpad.c
index a7b7a680..724de7f8 100644
--- a/src/evdev-mt-touchpad.c
+++ b/src/evdev-mt-touchpad.c
@@ -2076,27 +2076,17 @@ tp_init_hysteresis(struct tp_dispatch *tp)
{
int res_x, res_y;
- if (tp->device->model_flags & EVDEV_MODEL_CYAPA)
- goto want_hysteresis;
-
- if (tp->semi_mt &&
- (tp->device->model_flags & EVDEV_MODEL_SYNAPTICS_SERIAL_TOUCHPAD))
- goto want_hysteresis;
-
- if (tp->device->model_flags & EVDEV_MODEL_WOBBLY_TOUCHPAD)
- goto want_hysteresis;
-
tp->hysteresis_margin.x = 0;
tp->hysteresis_margin.y = 0;
- return;
+ if (tp->device->model_flags & EVDEV_MODEL_PRECISE_TOUCHPAD)
+ return;
-want_hysteresis:
res_x = tp->device->abs.absinfo_x->resolution;
res_y = tp->device->abs.absinfo_y->resolution;
-
tp->hysteresis_margin.x = res_x/2;
tp->hysteresis_margin.y = res_y/2;
+
return;
}
diff --git a/src/evdev.c b/src/evdev.c
index cfb4a91e..0227f515 100644
--- a/src/evdev.c
+++ b/src/evdev.c
@@ -1806,7 +1806,7 @@ evdev_read_model_flags(struct evdev_device *device)
MODEL(CYBORG_RAT),
MODEL(CYAPA),
MODEL(LENOVO_T450_TOUCHPAD),
- MODEL(WOBBLY_TOUCHPAD),
+ MODEL(PRECISE_TOUCHPAD),
MODEL(TRACKBALL),
{ NULL, EVDEV_MODEL_DEFAULT },
#undef MODEL
diff --git a/src/evdev.h b/src/evdev.h
index 4fe2cb91..54d7ce74 100644
--- a/src/evdev.h
+++ b/src/evdev.h
@@ -114,7 +114,7 @@ enum evdev_device_model {
EVDEV_MODEL_CYBORG_RAT = (1 << 14),
EVDEV_MODEL_CYAPA = (1 << 15),
EVDEV_MODEL_LENOVO_T450_TOUCHPAD= (1 << 17),
- EVDEV_MODEL_WOBBLY_TOUCHPAD = (1 << 18),
+ EVDEV_MODEL_PRECISE_TOUCHPAD = (1 << 18),
EVDEV_MODEL_TRACKBALL = (1 << 19),
};