Bug 506342 - Cannot configure mouse side buttons
Summary: Cannot configure mouse side buttons
Status: RESOLVED FIXED
Alias: None
Product: systemsettings
Classification: Applications
Component: kcm_mouse (other bugs)
Version First Reported In: 6.4.0
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
: 509644 (view as bug list)
Depends on:
Blocks:
 
Reported: 2025-06-29 13:37 UTC by EatMe
Modified: 2025-09-24 16:55 UTC (History)
11 users (show)

See Also:
Latest Commit:
Version Fixed In: 6.4.6
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description EatMe 2025-06-29 13:37:18 UTC
Since Plasma 6.4.0 I cannot go into System Settings, Mouse & Touchpad, click Mouse, select Configure Extra Buttons and assign the Control key to each of my mouses side buttons to effectively disable them. In both my production OS which is Reborn Os and a test OS BlueStar I can click Add Binding, but when I mouseover Press a mouse button and press either side button nothing happens. I am not offered the chance to choose which key on my keyboard I want to assign the side buttons to.

Plasma 6.4.1
Framework 6.15.0
QT Version 6.9.01
Wayland
Kernel 6.15.4-arch2-1


Steps to reproduce:
1. Launch System Settings
2. Click Mouse & Touchpad
3. Click Configure Extra Buttons
4. Click Add Binging
5. Mouseover Press a mouse button
6. Press one of the side buttons on my mouse
7. Am not asked to press a key on my keyboard to assign it to the side button

Expected behavior after step 6 above to be told to press a button on my keyboard to assign it to the mouse button and it actually be assigned.
Comment 1 Leandro Guedes 2025-07-04 00:33:14 UTC
I was able to reproduce the same issue.

It asks to press the buttons you want to add a key binding for, but after pressing them, nothing happens.

Operating System: Arch Linux 
KDE Plasma Version: 6.4.2
KDE Frameworks Version: 6.15.0
Qt Version: 6.9.1
Kernel Version: 6.15.4-arch2-1 (64-bit)
Graphics Platform: Wayland
Processors: 4 × Intel® Core™ i5-3570 CPU @ 3.40GHz
Memory: 16 GiB of RAM (15.6 GiB usable)
Graphics Processor: NVIDIA GeForce GTX 1050 Ti
Comment 2 Cleber de Souza Abreu 2025-07-04 01:48:22 UTC
Hello!

I had the same problem reported in this topic.

I use Fedora and I followed these steps:

1- I downloaded the latest Fedora ISO dated 03/07/2025;
2- I put the ISO on a Pen-drive with Ventoy;
3- I started the ISO when the notebook booted;
4- Fedora started normally and Plasma recognized the side buttons of my mouse (generic mouse) normally;
5- I installed Fedora on the notebook;
6- I restarted the notebook and started the system normally from the local disk. At that moment, Plasma still recognized the side buttons of my mouse;
7- I updated the system to the latest version (data below);
8- From that moment on, Plasma stopped recognizing the side buttons of my mouse.

Operating System: Fedora Linux 42
KDE Plasma Version: 6.4.1
KDE Frameworks Version: 6.15.0
Qt Version: 6.9.1
Kernel Version: 6.15.4-200.fc42.x86_64 (64-bit)
Graphics Platform: Wayland
Processors: 4 × Intel® Core™ i3-7020U CPU @ 2.30GHz
Memory: 8 GiB of RAM (7.6 GiB usable)
Graphics Processor: Intel® HD Graphics 620
Manufacturer: ASUSTeK COMPUTER INC.
Product Name: VivoBook 15_ASUS Laptop X540UAR
System Version: 1.0
Comment 3 EatMe 2025-07-04 11:37:54 UTC
Would be nice to know that this is being looked into.
Comment 4 Greeniac 2025-08-02 09:13:43 UTC
This is still an issue in Plasma 6.4.3. A workaround is to edit `~/.config/kcminputrc` and add the section `[ButtonRebinds][Mouse]` and then the binding bellow it, so for example this is what you add if you want to switch the virtual desktops with the side buttons (which is how I switch between virtual desktops, very handy):

`
[ButtonRebinds][Mouse]
ExtraButton1=Key,Meta+Ctrl+Right
ExtraButton2=Key,Meta+Ctrl+Left
`
Comment 5 Greeniac 2025-08-02 09:14:35 UTC
(In reply to Greeniac from comment #4)
> This is still an issue in Plasma 6.4.3. A workaround is to edit
> `~/.config/kcminputrc` and add the section `[ButtonRebinds][Mouse]` and then
> the binding bellow it, so for example this is what you add if you want to
> switch the virtual desktops with the side buttons (which is how I switch
> between virtual desktops, very handy):
> 
> `
> [ButtonRebinds][Mouse]
> ExtraButton1=Key,Meta+Ctrl+Right
> ExtraButton2=Key,Meta+Ctrl+Left
> `

Oops! I didn't know that code blocks don't work here (or I just did them wrong).
Comment 6 David Redondo 2025-09-24 12:01:48 UTC
*** Bug 509644 has been marked as a duplicate of this bug. ***
Comment 7 David Redondo 2025-09-24 12:17:01 UTC
I checked out a really old version of the kcm (january 2024) and it has the same issue so some change somewhere else broke it.
Comment 8 David Redondo 2025-09-24 12:42:24 UTC
Seems 

2ec4cdfe92bcba736fa64b4fc6e534cfc15abb59 is the first bad commit
commit 2ec4cdfe92bcba736fa64b4fc6e534cfc15abb59
Author: Marco Martin <notmart@gmail.com>
Date:   Wed May 7 15:45:44 2025 +0200

    ColumnView: Use only touch event for dragging
    
    Drop support of synthetized mouse event for touch drag of ColumnView,
    use only proper touch events now.
    Code is simpler and way less glitchy, things like Plasma Settings
    appear much more reliable now

 src/layouts/columnview.cpp | 247 +++++++++++++++++----------------------------
 src/layouts/columnview.h   |  15 ++-


is the culprit
Comment 9 Bug Janitor Service 2025-09-24 14:00:43 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-desktop/-/merge_requests/3203
Comment 10 David Redondo 2025-09-24 14:40:46 UTC
Git commit 84f1f2f3cd62373b76d759f6a3e95f25b74b97cb by David Redondo.
Committed on 24/09/2025 at 14:23.
Pushed by davidre into branch 'master'.

kcms/mouse: Make button rebinding work again

2ec4cdfe92bcba736fa64b4fc6e534cfc15abb59 in Kirigami broke it
for some reason, event handling code looks the same.
For now as a workaround we can make the columnview non-interactive
while listening for mouse buttons.
FIXED-IN:6.4.6

M  +7    -0    kcms/mouse/ui/bindings.qml

https://invent.kde.org/plasma/plasma-desktop/-/commit/84f1f2f3cd62373b76d759f6a3e95f25b74b97cb
Comment 11 Greeniac 2025-09-24 15:17:00 UTC
(In reply to David Redondo from comment #10)
> Git commit 84f1f2f3cd62373b76d759f6a3e95f25b74b97cb by David Redondo.
> Committed on 24/09/2025 at 14:23.
> Pushed by davidre into branch 'master'.
> 
> kcms/mouse: Make button rebinding work again
> 
> 2ec4cdfe92bcba736fa64b4fc6e534cfc15abb59 in Kirigami broke it
> for some reason, event handling code looks the same.
> For now as a workaround we can make the columnview non-interactive
> while listening for mouse buttons.
> FIXED-IN:6.4.6
> 
> M  +7    -0    kcms/mouse/ui/bindings.qml
> 
> https://invent.kde.org/plasma/plasma-desktop/-/commit/
> 84f1f2f3cd62373b76d759f6a3e95f25b74b97cb

Nice!
Comment 12 David Redondo 2025-09-24 15:22:47 UTC
Git commit 756a579f4a925158a485aeff45144b02d5e2145c by David Redondo.
Committed on 24/09/2025 at 14:53.
Pushed by davidre into branch 'Plasma/6.5'.

kcms/mouse: Make button rebinding work again

2ec4cdfe92bcba736fa64b4fc6e534cfc15abb59 in Kirigami broke it
for some reason, event handling code looks the same.
For now as a workaround we can make the columnview non-interactive
while listening for mouse buttons.
FIXED-IN:6.4.6


(cherry picked from commit 84f1f2f3cd62373b76d759f6a3e95f25b74b97cb)

Co-authored-by: David Redondo <kde@david-redondo.de>

M  +7    -0    kcms/mouse/ui/bindings.qml

https://invent.kde.org/plasma/plasma-desktop/-/commit/756a579f4a925158a485aeff45144b02d5e2145c
Comment 13 David Redondo 2025-09-24 15:42:39 UTC
Git commit 990d7f16ceb0920d52558583b3d97ebc2f5b24ab by David Redondo.
Committed on 24/09/2025 at 15:23.
Pushed by davidre into branch 'Plasma/6.4'.

kcms/mouse: Make button rebinding work again

2ec4cdfe92bcba736fa64b4fc6e534cfc15abb59 in Kirigami broke it
for some reason, event handling code looks the same.
For now as a workaround we can make the columnview non-interactive
while listening for mouse buttons.
FIXED-IN:6.4.6


(cherry picked from commit 84f1f2f3cd62373b76d759f6a3e95f25b74b97cb)

Co-authored-by: David Redondo <kde@david-redondo.de>

(cherry picked from commit 756a579f4a925158a485aeff45144b02d5e2145c)

Co-authored-by: David Redondo <kde@david-redondo.de>

M  +7    -0    kcms/mouse/ui/bindings.qml

https://invent.kde.org/plasma/plasma-desktop/-/commit/990d7f16ceb0920d52558583b3d97ebc2f5b24ab