Bug 98808

Summary: Provide a user-accessible method to enable/disable middle-click functionality
Product: Wayland Reporter: Nate Graham <nate>
Component: libinputAssignee: Wayland bug list <wayland-bugs>
Status: CLOSED WORKSFORME QA Contact:
Severity: normal    
Priority: medium CC: nate, peter.hutterer
Version: 1.5.0   
Hardware: x86-64 (AMD64)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:

Description Nate Graham 2016-11-21 16:03:24 UTC
I would like a user-accessible method to enable/disable middle-click functionality. I never use this, and especially with "Areas" mode, I keep accidentally hitting the invisible middle-click button area and accidentally pasting text or doing something else that I don't want.

It's harder to accidentally trigger this functionality with "Clickfinger" mode, which s good, but that's not usable for me due to https://bugs.freedesktop.org/show_bug.cgi?id=98799, https://bugs.freedesktop.org/show_bug.cgi?id=98800, and https://bugs.freedesktop.org/show_bug.cgi?id=98801.
Comment 1 Peter Hutterer 2016-11-22 00:01:33 UTC
if you enable middle button emulation on the touchpad while in 'area' mode the middle button area goes away and you're left with only left/right buttons (but obviously you can still middle click by clicking both).
Comment 2 Nate Graham 2016-11-22 00:05:01 UTC
I know you're not responsible for graphical front-ends to libinput, but do you know how I would do that? On Fedora 25 + GNOME 3.22, I haven't found any kind of way to turn off middle-clicking, either via a GUI interface or documentation for a CLI interface. I've turned off the "middle-click paste" option in GNOME Tweak Tool, but that didn't seem to turn off the middle-mouse button functionality itself.
Comment 3 Peter Hutterer 2016-11-22 00:44:19 UTC
the middle-click paste thing would be just that - middle click to paste the content of the clipboard (google has more if you're interested)

I can't find anything in gsettings that looks like it enables middle button emulation and nothing in the mutter sources either. So for GNOME on Wayland it looks like you're out of luck, GNOME on X you could set it with an xorg.conf snippet or with xinput at runtime.
Comment 4 Nate Graham 2016-11-22 19:50:33 UTC
All right, thanks. I've filed a bug on GNOME to expose the setting: https://bugzilla.gnome.org/show_bug.cgi?id=774873

Another acceptable resolution would be to improve Clickfinger behavior, where it's much harder to accidentally trigger a middle click:
https://bugs.freedesktop.org/show_bug.cgi?id=98799
https://bugs.freedesktop.org/show_bug.cgi?id=98800
https://bugs.freedesktop.org/show_bug.cgi?id=98801

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.