mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2025-12-28 16:40:07 +01:00
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>
This commit is contained in:
parent
331a2bcd73
commit
cbe9a3bfc3
1 changed files with 2 additions and 2 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue