Bug 96962 - Make two/three finger tap action configurable.
Summary: Make two/three finger tap action configurable.
Status: RESOLVED FIXED
Alias: None
Product: Wayland
Classification: Unclassified
Component: libinput (show other bugs)
Version: unspecified
Hardware: All All
: medium enhancement
Assignee: Wayland bug list
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-07-16 23:39 UTC by Yuxuan Shui
Modified: 2016-08-16 08:25 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments

Description Yuxuan Shui 2016-07-16 23:39:30 UTC
libinput has two finger as middle click and three finger as right click, and this is not configurable.
Comment 1 Peter Hutterer 2016-07-17 23:36:50 UTC
yes. this is intentional for a couple of reasons First, keep in mind:
* two-finger tap is easier to trigger than a three finger tap
* two-finger tapping is reliable on virtually all touchpads, three-finger tapping is an issue on many older touchpads

Now, with that in mind. 
* In most UIs right click is more important than middle click and should be easier to trigger.
* in most UIs, right click is non-optional - some menu options are only accessible via right click so having a working right click is imperative. I think only OS X is the exception here.
* in most UIs, middle click is a hidden feature. Yes, it does things like paste or 'open URL', but these are not obvious or even mandatory

So these arguments go in favour of the current setting.
There is other precedence: the average mouse has a dedicated right click button but middle click is on the scroll wheel and harder to trigger.


So the main question is: what is your workflow that you need to change this around and you can't use three-finger tap to middle click?
Comment 2 Peter Hutterer 2016-07-18 04:55:02 UTC
ok, that'll teach me answering bugs before the coffee kicks in. See my comment, we hardcode finger assignment for 1/2/3 fingers as L/R/M tap. If your touchpad has an LMR that's usually caused by the touchpad not being recognised by the kernel and tapping is handled in the touchpad's firmware. I'll need the evemu-describe of your touchpad device please.
Comment 3 Yuxuan Shui 2016-07-18 06:00:36 UTC
Oh, I'm sorry, that's a mistake, 1/2/3 fingers does corresponds to L/R/M.

I agree the hardcoded setting makes sense for most people. But there're people like me, who mess up 90% of times trying to use three finger taps (it always ended up being a two finger tap), and use middle click more often than right click (copy-paste, open in new tab, etc.).

Making it configurable won't harm, right?
Comment 4 Peter Hutterer 2016-07-21 01:18:17 UTC
(In reply to Yuxuan Shui from comment #3)
> Making it configurable won't harm, right?

it's a fair amount of work to add any configuration option because we now need a testing matrix for each combination. That's effectively indefinitely too, users are angry to not have a feature but get even angrier when a feature is removed.
http://who-t.blogspot.com.au/2016/04/why-libinput-doesnt-have-lot-of-config.html
Comment 6 Yuxuan Shui 2016-07-23 02:22:59 UTC
Thanks a lot for implementing this !!
Comment 7 Peter Hutterer 2016-08-16 08:25:58 UTC
commit 59fac8e90269af863231752dc5897f11146f6e05
Author: Peter Hutterer <peter.hutterer@who-t.net>
Date:   Thu Jul 21 11:46:05 2016 +1000

    Add configurable button map to tappings


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.