SUMMARY Additional mouse buttons can be bound to keyboard inputs, but not to left click, middle click, or right click. STEPS TO REPRODUCE 1. Enter Re-Bind Additional Mouse Buttons menu 2. Click Add Binding, click any additional mouse button 3. Left click, right click, or middle click OBSERVED RESULT Nothing happens. EXPECTED RESULT The additional button is bound to the left, right, or middle mouse button. SOFTWARE/OS VERSIONS Linux/KDE Plasma: EndeavourOS 6.5.7-arch1-1 KDE Plasma Version: 5.27.8 KDE Frameworks Version: 5.110.0 Qt Version: 5.15.11 ADDITIONAL INFORMATION Using the Wayland session.
This is intentional, so people do not end up without right, left or middle click
(In reply to David Redondo from comment #1) > This is intentional, so people do not end up without right, left or middle > click Oh. I might be missing something, but why would binding an additional key to right/left/middle click un-bind the original right/left/middle mouse buttons?
Oh sorry, I misread it as re-binding those buttons! Yes binding another button to the left button doesnt have this problem.
Here's a video of the issue I'm running into: https://streamable.com/8edhfm For posterity, I should mention that I'm using the Nvidia proprietary driver... It might not have anything to do with this report, but it does tend to cause weird bugs in all sorts of unexpected places when using Wayland.
Unfortunately I'm stuck because I need to swap Middle and Back buttons on my mouse, and there isn't any way to do that currently in KWin. I understand the need to avoid a configuration that makes the mouse unusable. Maybe a different approach to configuration UI would help? Maybe a different approach to configuration is needed? In Xinput it's possible to bind each button to any button output. It would be nice if we could achieve the same thing at least via DBus or manual config file edits if not via the UI.
I've made a little progress, with a merge request here: https://invent.kde.org/plasma/kwin/-/merge_requests/5959 This makes it possible to rebind _any_ mouse button by editing the `kcminputrc` config file. This doesn't affect what's possible from the UI, but it is a step.
Git commit fd08145736bc1c588462ac1cf2625a1aa166b025 by Vlad Zahorodnii, on behalf of Paul Dann. Committed on 13/09/2024 at 09:21. Pushed by vladz into branch 'master'. plugins/buttonrebinds: permit binding any mouse button This makes it possible to swap the "middle" and "back" buttons, for example. M +7 -7 src/plugins/buttonrebinds/buttonrebindsfilter.cpp https://invent.kde.org/plasma/kwin/-/commit/fd08145736bc1c588462ac1cf2625a1aa166b025