SUMMARY The new "Legacy X11 App Support" feature works by forwarding keyboard keys to X11 apps, but it does not work for mouse buttons. STEPS TO REPRODUCE 1. Open an X11 app that you can bind mouse buttons with (I'm using Discord as an example) 2. Bind an action (ex. Push-to-talk) to that mouse button 3. Focus a native Wayland app and push the bound mouse button OBSERVED RESULT Push-to-talk does not work EXPECTED RESULT Push-to-talk works SOFTWARE/OS VERSIONS Linux: 6.1.12-arch1-1 (64-bit) KDE Plasma Version: 5.27.1 KDE Frameworks Version: 5.103.0 Qt Version: 5.15.8 ADDITIONAL INFORMATION Joystick button events also don't get passed to X11 apps but I'm not sure if that's something that should be handled here as well.
Also CapsLock key only works in "always" option.
I'll chime in on this issue as I would really like to be able to use mouse buttons as push-to-talk
This is extremely important for wayland adoption for me so I would like to see this resolved. (This should have been done before keyboard support since it doesn't conflict with the security considerations of the limitation [to prevent keyloggers etc.] in the first place)
A possibly relevant merge request was started @ https://invent.kde.org/plasma/kwin/-/merge_requests/4595
Git commit 183637502d6f081f470a6ea1f99b69f882af68bb by Oliver Beard. Committed on 27/02/2024 at 13:34. Pushed by davidedmundson into branch 'master'. xwayland: Add option to additionally eavesdrop on mouse buttons M +3 -0 src/kcms/xwayland/kwinxwaylandsettings.kcfg M +25 -18 src/kcms/xwayland/ui/main.qml M +3 -0 src/kwin.kcfg M +11 -0 src/options.cpp M +11 -0 src/options.h M +9 -0 src/wayland/pointer.cpp M +2 -0 src/wayland/pointer.h M +39 -10 src/xwayland/xwayland.cpp https://invent.kde.org/plasma/kwin/-/commit/183637502d6f081f470a6ea1f99b69f882af68bb