Bug 475879 - Re-Bind Additional Mouse Buttons menu does not accept bindings to other mouse buttons
Summary: Re-Bind Additional Mouse Buttons menu does not accept bindings to other mouse...
Status: RESOLVED FIXED
Alias: None
Product: systemsettings
Classification: Applications
Component: kcm_mouse (show other bugs)
Version: 5.27.8
Platform: Other Linux
: NOR minor
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-10-20 15:26 UTC by fmakosza
Modified: 2024-09-17 15:52 UTC (History)
5 users (show)

See Also:
Latest Commit:
Version Fixed In: 6..3.0
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description fmakosza 2023-10-20 15:26:01 UTC
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.
Comment 1 David Redondo 2023-10-23 06:34:24 UTC
This is intentional, so people do not end up without right, left or middle click
Comment 2 fmakosza 2023-10-23 06:56:19 UTC
(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?
Comment 3 David Redondo 2023-10-23 07:05:29 UTC
Oh sorry, I misread it as re-binding those buttons!

Yes binding another button to the left button doesnt have this problem.
Comment 4 fmakosza 2023-10-23 08:39:54 UTC
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.
Comment 5 Paul Gideon Dann 2024-04-10 08:32:42 UTC
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.
Comment 6 Paul Gideon Dann 2024-06-21 14:55:04 UTC
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.
Comment 7 Vlad Zahorodnii 2024-09-13 09:21:42 UTC
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