Bug 488837

Summary: Legacy X11 mouseclicks only get forwarded when keypresses are
Product: [Plasma] kwin Reporter: toadking
Component: wayland-genericAssignee: KWin default assignee <kwin-bugs-null>
Status: REPORTED ---    
Severity: normal CC: kde, kde, nate, vlad.zahorodnii
Priority: NOR Keywords: wayland-only
Version First Reported In: 6.1.0   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description toadking 2024-06-20 22:18:34 UTC
SUMMARY
As a follow-up to bug 466448, the behavior of the mouseclick forwarding seems to be tied to key presses which is not the intended behavior. In order to get full forwarding support key clicks have to be set to "Always" for mouseclicks to reliably work, which opens up security issues.

STEPS TO REPRODUCE
1. Go to legacy X11 app support settings
2. Set the keystrokes setting to Never/Modifier-only/Modifier + keys only
3. Check the include mouse buttons checkbox
4. Click a mouse button

OBSERVED RESULT
Mouse buttons are not forwarded to X11 apps

EXPECTED RESULT
Mouse buttons are forwarded to X11 apps

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Archlinux
(available in About System)
KDE Plasma Version: 6.1.0
KDE Frameworks Version: 6.3.0
Qt Version: 6.7.1

ADDITIONAL INFORMATION
When set to "Never" or "Modifier + keys" settings, no key presses are ever sent. However, if the "Meta"-only option is set then keys are sent when a modifier key is held down. Ideally mouse keys being sent should be completely independent of keyboard keys.
Comment 1 David Edmundson 2024-06-21 08:11:06 UTC
Can you confirm how you're testing?
Comment 2 toadking 2024-06-21 22:58:38 UTC
I'm testing with Discord, with a mouse button (MOUSE4) bound to push-to-talk.
Comment 3 toadking 2024-06-21 23:01:26 UTC
Sorry, I meant MOUSE9. It's one of the side buttons on my mouse.
Comment 4 Bug Janitor Service 2024-07-06 03:47:24 UTC Comment hidden (spam)
Comment 5 TraceyC 2025-02-24 17:58:50 UTC Comment hidden (spam)
Comment 6 toadking 2025-02-25 06:31:46 UTC Comment hidden (spam)