[PATCH libinput] touchpad: reduce the height of the bottom software buttons to 10%

Peter Hutterer peter.hutterer at who-t.net
Mon Jun 30 22:16:56 PDT 2014


Motion starting inside the buttons is initially ignored. For pointer motion
along the negative y axis, the finger usually starts south of the touchpad
center. The more distance the motion is intended to cover, the closer to the
bottom edge of the touchpad the finger starts. For motions spanning most of
the screen it's then common to start inside the buttons, giving the cursor a
perceptive delay before moving.

Making the software buttons a smaller hit-target is acceptible, since we cover
it all the way to the bottom edge anyway.

Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
---
10% may be cutting it short of course, but it seems big enough here.

 src/evdev-mt-touchpad-buttons.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/evdev-mt-touchpad-buttons.c b/src/evdev-mt-touchpad-buttons.c
index 2ac231c..3099806 100644
--- a/src/evdev-mt-touchpad-buttons.c
+++ b/src/evdev-mt-touchpad-buttons.c
@@ -603,7 +603,7 @@ tp_init_buttons(struct tp_dispatch *tp,
 	if (tp->buttons.is_clickpad && !tp->buttons.use_clickfinger) {
 		int xoffset = absinfo_x->minimum,
 		    yoffset = absinfo_y->minimum;
-		tp->buttons.bottom_area.top_edge = height * .8 + yoffset;
+		tp->buttons.bottom_area.top_edge = height * .9 + yoffset;
 		tp->buttons.bottom_area.rightbutton_left_edge = width/2 + xoffset;
 
 		if (tp->buttons.has_topbuttons) {
-- 
1.9.3



More information about the wayland-devel mailing list