diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2017-01-09 11:27:06 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2017-01-11 10:39:05 +1000 |
commit | 43ba2dbb30b33f2367de20fb33fde8083bd3c7c8 (patch) | |
tree | f3108570bccdbdd07b6c9d9b147691767a3901d1 /src/evdev-mt-touchpad-buttons.c | |
parent | 7b3e583abe4b0213ec25294c06272d958f288cfc (diff) | |
download | libinput-43ba2dbb30b33f2367de20fb33fde8083bd3c7c8.tar.gz |
touchpad: add a model tag to mark touchpads with visible marker
We used to mark dell touchpads this way but let's make this more generic.
Nothing else used the dell touchpad model flag, so we can simply replace it.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Diffstat (limited to 'src/evdev-mt-touchpad-buttons.c')
-rw-r--r-- | src/evdev-mt-touchpad-buttons.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/evdev-mt-touchpad-buttons.c b/src/evdev-mt-touchpad-buttons.c index b59cf13a..f4fe6b79 100644 --- a/src/evdev-mt-touchpad-buttons.c +++ b/src/evdev-mt-touchpad-buttons.c @@ -569,10 +569,8 @@ tp_init_softbuttons(struct tp_dispatch *tp, * * On touchpads with visible markings we reduce the size of the * middle button since users have a visual guide. - * - * All Dell touchpads appear to have a middle marker. */ - if (tp->device->model_flags & EVDEV_MODEL_DELL_TOUCHPAD) { + if (tp->device->model_flags & EVDEV_MODEL_TOUCHPAD_VISIBLE_MARKER) { mm.x = width/2 - 5; /* 10mm wide */ edges = evdev_device_mm_to_units(device, &mm); mb_le = edges.x; |