Middle button click is still emulated by pressing in the middle The output should read button press 3 for a right click and button press 1 for a left click. Test the device events by running xinput test 'device_name_or_id'īe aware that spaces and other special characters in the device name must be escaped or put in single quotes.Get the name of your input device by running xinput list.
The underlying issue here is that most touchpads only have 1 hardware button, so the software handling the input must map that button press to a left click or right click based on the location of your finger at the time of the button press. Reboot and test that everything works as expected: Set GNOME default behavior to SoftButton AreasĮxecute this in a terminal (as normal user): gsettings set .touchpad click-method 'areas' Put the following code into /etc/X11//nf (as root) Section "InputClass"ģ. It maps left+right click to middle click. Note: Middle button emulation gets enabled to disable the middle button area for the SoftButtons. Enable right click emulation through SoftButton Areas and enable middle button emulation
Go to Settings -> Devices -> Mouse and Touchpad and enable Tap to click 2.
This solution was tested on Fedora 31 Workstation in X11 mode (not Wayland) and should be compatible with Ubuntu 18.04+ and other distros using the same software (X11, GNOME, libinput).