https://bugs.kde.org/show_bug.cgi?id=464735
Bug ID: 464735 Summary: kwin emits no or wrong key events when binding extra mouse buttons on Wayland Classification: Plasma Product: kwin Version: 5.26.90 Platform: Exherbo OS: Linux Status: REPORTED Severity: normal Priority: NOR Component: input Assignee: kwin-bugs-n...@kde.org Reporter: li...@bernd-steinhauser.de Target Milestone: --- SUMMARY If the extra mouse buttons are configured via kcm_mouse, on some occasions, the event is not carried out. It can also happen that actually a different key event is emitted, i.e. one that was configured for a different button. e.g. my kcminputrc right now is: [ButtonRebinds][Mouse] ExtraButton1=Key,Ctrl+PgUp ExtraButton2=Key,Ctrl+PgDown ExtraButton3=Key,Ctrl+W (btw, shouldn't these settings be in the device-specific part of the config file?) So kcm seems to generate the file correctly, the Button numbers and key combinations match what I set in the kcm. However, when I press one of the buttons, e.g. in a browser window (Falkon or Firefox), for Extra Button 1 and 3, it emits Ctrl+W, for Extra Button, nothing is emitted (it also doesn't do its default function "back"). This is persistent even after restarting the system. I'm not sure if kwin is at fault here or if it's the kcm, but something is not working as it should. bug 460345 looks similar, but is already fixed in the version I'm running. STEPS TO REPRODUCE 1. Use a mouse with configurable extra buttons (so at least 8 buttons?) 2. Assign key combinations to these buttons 3. Check whether the configured key combinations are emitted OBSERVED RESULT No or the wrong key combination is emitted in some cases. EXPECTED RESULT The configured key combinations should be emitted when a button is pressed. SOFTWARE/OS VERSIONS Linux/KDE Plasma: 5.26.90 (I think it is also present on 5.26, but I'm not 100% sure.) KDE Plasma Version: 5.26.90 KDE Frameworks Version: 5.102.0 Qt Version: 5.18.8 ADDITIONAL INFORMATION I'm using a Logitech M705 mouse. This mouse has a total of 10 buttons, of which button 10 (the thumb button) is not used in a standard config. On X, I assign this button via imwheel to the key combination Ctrl+W to quickly close windows/tabs in certain programs like Falkon or Firefox. Additionally, I assign the left/right click of the scroll wheel to Ctrl+PgUp and Ctrl+PgDown to switch tabs in the browser. I never use the lef/right click of the scroll wheel to navigate left/right anywhere, so would be wasted functionality for me. Now obviously, imwheel does not work on Wayland anymore, so for Wayland I need a different solution. Fortunately, kwin seems to support configuring mouse buttons on Wayland, so I tried it. On Wayland, 3 extra mouse buttons are recognized. 1 and 2 are the buttons that are configured as forward and back in a standard config. Extra Button 3 is what is recognized as Button 10 on X11 and does not have a standard function assigned to it. I started with this button and assigned the key combination Ctrl+W to it. At first, this did not work at all, so at first I thought that this functionality is completely broken. I did later on investigate more and found that I also can set Extra Button 1 and 2 and so I tried that and came up with the configuration above. This is not exactly what I want, since I would have to give up the forward/back functionality, but it's better than nothing. However, I did then find out, that the behavior changed and now two buttons result in Ctrl+W, while Button 2 does nothing, as described above. -- You are receiving this mail because: You are watching all bug changes.