Bug 485374

Summary: Left/right button simulation of the middle button does not work.
Product: [Applications] systemsettings Reporter: Lukas Ruzicka <lruzicka>
Component: kcm_mouseAssignee: Plasma Bugs List <plasma-bugs-null>
Status: RESOLVED UPSTREAM    
Severity: normal CC: fanzhuyifan, natalie_clarius, nate
Priority: NOR    
Version First Reported In: 6.0.3   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Lukas Ruzicka 2024-04-11 13:07:01 UTC
***
If you're not sure this is actually a bug, instead post about it at https://discuss.kde.org

If you're reporting a crash, attach a backtrace with debug symbols; see https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***

SUMMARY

The mouse has a settings that when I click left and mouse button together, I can simulate the click of the middle button. However, this does not work and whenever I press the combination, it behaves like whatever button was clicked last, in my hand it is mostly the right button, so I am ending with the context menu most of the time.

STEPS TO REPRODUCE
1. Go to KSettings and open the Mouse settings.
2. Click on "Press left and right buttons for middle-click.
3. Hit Apply.
4. Try it.

OBSERVED RESULT

The two buttons do not simulate the middle click.

EXPECTED RESULT

The two button should simulate the middle click when the option is there.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Fedora
(available in About System)
KDE Plasma Version: 6.0.3
KDE Frameworks Version: 6.0.0
Qt Version: 6.6.2
Comment 1 fanzhuyifan 2024-04-11 16:09:25 UTC
Is this on wayland or x11? At least on wayland this is handled by libinput.
Comment 2 Lukas Ruzicka 2024-04-11 16:41:47 UTC
I have seen this on Wayland. Am I getting it right that this is not supposed to work on Wayland?
Comment 3 fanzhuyifan 2024-04-11 17:04:02 UTC
(In reply to Lukas Ruzicka from comment #2)
> I have seen this on Wayland. Am I getting it right that this is not supposed
> to work on Wayland?

This is supposed to work. Kwin completely depends on libinput for this on wayland. If this is not working, either that setting is not being sent to libinput, or this is a libinput issue.
Comment 4 Nate Graham 2024-04-12 18:08:05 UTC
It's working for me with my mouse, so I suspect a Libinput issue. Please report it to https://gitlab.freedesktop.org/libinput/libinput/-/issues/. Thanks!