summaryrefslogtreecommitdiff
path: root/src/evdev-mt-touchpad.c
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2017-07-02 15:36:59 +0200
committerHans de Goede <hdegoede@redhat.com>2017-07-02 15:36:59 +0200
commitf60e0f390334c5cb03bc89b249ff20dda0574b30 (patch)
treece0e04d2ba33c5973e8f16d190e0a830056dd9ba /src/evdev-mt-touchpad.c
parent5264a3c45c890014dc97ed3698b2c4272d9af2ba (diff)
evdev-mt-touchpad: Enable timestamp smoothing support for bluetooth touchpadsHEADmaster
Bluetooth wreaks havoc with the timestamp of the input events coming from the touchpad, enable timestamp smoothing support to counter this. Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Diffstat (limited to 'src/evdev-mt-touchpad.c')
-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 2d39e18..6af594d 100644
--- a/src/evdev-mt-touchpad.c
+++ b/src/evdev-mt-touchpad.c
@@ -2056,8 +2056,10 @@ tp_init_accel(struct tp_dispatch *tp)
if (tp->device->model_flags & EVDEV_MODEL_LENOVO_X230 ||
tp->device->model_flags & EVDEV_MODEL_LENOVO_X220_TOUCHPAD_FW81)
filter = create_pointer_accelerator_filter_lenovo_x230(tp->device->dpi);
+ else if (libevdev_get_id_bustype(device->evdev) == BUS_BLUETOOTH)
+ filter = create_pointer_accelerator_filter_touchpad(device->dpi, ms2us(50), ms2us(10));
else
- filter = create_pointer_accelerator_filter_touchpad(tp->device->dpi);
+ filter = create_pointer_accelerator_filter_touchpad(device->dpi, 0, 0);
if (!filter)
return false;