Horizontal thumb wheel on X11 is forwarded as mouse buttons 6/7 instead of horizontal scroll
Before reporting a bug, please complete the sanity checks above.
- I have done the sanity checks, and my issue persists.
Deskflow version info
Server:
- Deskflow 1.26.0
- Ubuntu 24.04
- X11 session
- Flatpak package: org.deskflow.deskflow
Client:
- Deskflow 1.26.0
- Windows
Mouse:
- Logitech MX Master 3
The issue was also present with Deskflow 1.21.2 before both server and client were upgraded to 1.26.0.
Build types
Official release (installer/package from GitHub releases)
Deskflow configuration
Ubuntu/X11 is the Deskflow server.
Windows is a Deskflow client.
The Logitech MX Master 3 is physically connected to the Linux server.
Vertical scrolling works normally across Deskflow.
The dedicated horizontal thumb wheel works normally on the Linux host itself, but does not produce horizontal scrolling on the Windows client.
No custom horizontal-scroll remapping is being used in Deskflow.
What steps will reproduce the problem?
- Run Deskflow 1.26.0 on an Ubuntu 24.04 X11 server.
- Connect a Windows client running Deskflow 1.26.0.
- Use a Logitech MX Master 3 connected to the Linux server.
- Move the Deskflow cursor onto the Windows client.
- Open an application on Windows that has a horizontal scrollbar.
- Rotate the MX Master 3 horizontal thumb wheel in either direction.
Expected: The Windows application should scroll horizontally.
Actual: Nothing scrolls horizontally.
On the Linux/X11 side, the thumb wheel is correctly reported as X11 buttons 6 and 7. However, Deskflow DEBUG1 output shows these events being forwarded as ordinary mouse button down/up events rather than horizontal wheel events.
Log output
Show log
[DEBUG1] event: ButtonPress button=7
[DEBUG1] event: ButtonRelease button=7
[DEBUG1] onMouseDown id=7
[DEBUG1] send mouse down to "WINDOWS-CLIENT" id=7
[DEBUG1] onMouseUp id=7
[DEBUG1] send mouse up to "WINDOWS-CLIENT" id=7
[DEBUG1] event: ButtonPress button=6
[DEBUG1] event: ButtonRelease button=6
[DEBUG1] onMouseDown id=6
[DEBUG1] send mouse down to "WINDOWS-CLIENT" id=6
[DEBUG1] onMouseUp id=6
[DEBUG1] send mouse up to "WINDOWS-CLIENT" id=6
[DEBUG1] event: ButtonPress button=6
[DEBUG1] event: ButtonRelease button=6
[DEBUG1] onMouseDown id=6
[DEBUG1] send mouse down to "WINDOWS-CLIENT" id=6
[DEBUG1] onMouseUp id=6
[DEBUG1] send mouse up to "WINDOWS-CLIENT" id=6
[DEBUG1] event: ButtonPress button=7
[DEBUG1] event: ButtonRelease button=7
[DEBUG1] onMouseDown id=7
[DEBUG1] send mouse down to "WINDOWS-CLIENT" id=7
[DEBUG1] onMouseUp id=7
[DEBUG1] send mouse up to "WINDOWS-CLIENT" id=7Additional information
- The MX Master 3 horizontal thumb wheel works correctly on the Linux host.
- xev confirms that the two thumb-wheel directions generate X11 button 6 and button 7 events.
- Deskflow itself also detects those button 6/7 events, as shown in the DEBUG1 log.
- Vertical scrolling works normally through Deskflow.
- The failure is specifically horizontal scrolling from the dedicated thumb wheel.
- Upgrading both the Linux server and Windows client from Deskflow 1.21.2 to 1.26.0 did not change the behaviour.
The DEBUG1 output appears to show buttons 6 and 7 being sent to the client as ordinary mouse button press/release events:
send mouse down ... id=6
send mouse up ... id=6rather than being converted to a horizontal wheel event.
This may be related to the X11 horizontal-scrolling changes in #9438 , but I have not tested a source-level patch yet.
Source: deskflow/deskflow