summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2017-02-08 09:53:44 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2017-02-17 09:59:22 +1000
commitce583a8c67c45e5439acf0160357c0a4bdfd2211 (patch)
tree6e4e5c394ea2a68e655bc8e065544887174c3679
parent254bd281f77457b7bef42d22f20568a84e1d1578 (diff)
downloadlibinput-ce583a8c67c45e5439acf0160357c0a4bdfd2211.tar.gz
touchpad: expand top middle button to cover 40mm to 60mm
42 and 58 were within the middle button already, 40/60 are more accurate values. https://bugs.freedesktop.org/show_bug.cgi?id=99212 Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> (cherry picked from commit cbe9a3bfc3c70992dc08934973a378da4f5314e5)
-rw-r--r--src/evdev-mt-touchpad-buttons.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/evdev-mt-touchpad-buttons.c b/src/evdev-mt-touchpad-buttons.c
index f4fe6b79..11ffe8ff 100644
--- a/src/evdev-mt-touchpad-buttons.c
+++ b/src/evdev-mt-touchpad-buttons.c
@@ -610,13 +610,13 @@ tp_init_top_softbuttons(struct tp_dispatch *tp,
evdev_device_get_size(device, &width, &height);
- mm.x = width * 0.58;
+ mm.x = width * 0.60;
mm.y = topsize_mm;
edges = evdev_device_mm_to_units(device, &mm);
tp->buttons.top_area.bottom_edge = edges.y;
tp->buttons.top_area.rightbutton_left_edge = edges.x;
- mm.x = width * 0.42;
+ mm.x = width * 0.40;
edges = evdev_device_mm_to_units(device, &mm);
tp->buttons.top_area.leftbutton_right_edge = edges.x;
} else {