Bug 102524

Summary: No middle button emulation property
Product: Wayland Reporter: rvernica
Component: libinputAssignee: Wayland bug list <wayland-bugs>
Status: RESOLVED NOTABUG QA Contact:
Severity: normal    
Priority: medium CC: peter.hutterer
Version: unspecified   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:

Description rvernica 2017-09-03 04:12:48 UTC
When I try to enable middle button emulation, it seems there is no such property for my mouse/touchpad. This is the laptop build-in mouse/touchpad. 

> xinput list
⎡ Virtual core pointer                    	id=2	[master pointer  (3)]
⎜   ↳ Virtual core XTEST pointer              	id=4	[slave  pointer  (2)]
⎜   ↳ xwayland-relative-pointer:13            	id=7	[slave  pointer  (2)]
⎜   ↳ xwayland-pointer:13                     	id=6	[slave  pointer  (2)]
⎣ Virtual core keyboard                   	id=3	[master keyboard (2)]
    ↳ Virtual core XTEST keyboard             	id=5	[slave  keyboard (3)]
    ↳ xwayland-keyboard:13                    	id=8	[slave  keyboard (3)]

> xinput list-props
Device 'Virtual core pointer':
	Device Enabled (119):	1
	Coordinate Transformation Matrix (121):	1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000

> xinput list-props
Device 'Virtual core XTEST pointer':
	Device Enabled (119):	1
	Coordinate Transformation Matrix (121):	1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000
	XTEST Device (238):	1

> xinput list-props 7
Device 'xwayland-relative-pointer:13':
	Device Enabled (119):	1
	Coordinate Transformation Matrix (121):	1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000
	Device Accel Profile (244):	0
	Device Accel Constant Deceleration (245):	1.000000
	Device Accel Adaptive Deceleration (246):	1.000000
	Device Accel Velocity Scaling (247):	10.000000

> xinput list-props 6
Device 'xwayland-pointer:13':
	Device Enabled (119):	1
	Coordinate Transformation Matrix (121):	1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000
	Device Accel Profile (244):	0
	Device Accel Constant Deceleration (245):	1.000000
	Device Accel Adaptive Deceleration (246):	1.000000
	Device Accel Velocity Scaling (247):	10.000000
Comment 1 rvernica 2017-09-03 20:04:50 UTC
I'm on Fedora 26 and Wayland. The packages are standard packages, up to date, from Fedora 26 repository.

> cat /etc/redhat-release
Fedora release 26 (Twenty Six)

> uname -a
Linux android 4.12.5-300.fc26.x86_64 #1 SMP Mon Aug 7 15:27:25 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux

> dnf info libinput
Last metadata expiration check: 0:53:36 ago on Sun 03 Sep 2017 12:10:50 PM PDT.
Installed Packages
Name         : libinput
Version      : 1.8.0
Release      : 2.fc26
Arch         : x86_64
Size         : 388 k
Source       : libinput-1.8.0-2.fc26.src.rpm
Repo         : @System
From repo    : updates
Summary      : Input device library
URL          : http://www.freedesktop.org/wiki/Software/libinput/
License      : MIT
Description  : libinput is a library that handles input devices for display servers and other
             : applications that need to directly deal with input devices.
             : 
             : It provides device detection, device handling, input device event processing
             : and abstraction so minimize the amount of custom input code the user of
             : libinput need to provide the common set of functionality that users expect.

> dnf info libwayland-server
Last metadata expiration check: 0:44:55 ago on Sun 03 Sep 2017 12:10:50 PM PDT.
Installed Packages
Name         : libwayland-server
Version      : 1.13.0
Release      : 1.fc26
Arch         : x86_64
Size         : 78 k
Source       : wayland-1.13.0-1.fc26.src.rpm
Repo         : @System
From repo    : fedora
Summary      : Wayland server library
URL          : http://wayland.freedesktop.org/
License      : MIT
Description  : Wayland server library
Comment 2 Peter Hutterer 2017-09-04 03:49:22 UTC
From https://who-t.blogspot.com.au/2017/05/xinput-list-shows-xwayland-pointer.html:
"TLDR: If you see devices like "xwayland-pointer" show up in your xinput list output, then you are running under a Wayland compositor and debugging/configuration with xinput will not work. "

Changing settings under wayland requires changing the compositor-supported configuration, most likely gnome in your case.

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.