Bug 503233

Summary: Mouse button eavesdropping not working while cursor is over window title bar
Product: [Plasma] kwin Reporter: mpalys7274
Component: xwaylandAssignee: KWin default assignee <kwin-bugs-null>
Status: REPORTED ---    
Severity: normal CC: duha.bugs, kdedev, nate, toadking
Priority: NOR    
Version First Reported In: 6.3.4   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description mpalys7274 2025-04-23 14:19:04 UTC
SUMMARY
In legacy apps using mouse button eavesdropping (in my case Discord), button press and release events are not being forwarded to the app while the cursor is over a title bar of any window.
While using Discord's push-to-talk, it makes it possible to either:
  a) unknowingly not activate push-to-talk
  b) activate push-to-talk but fail to deactivate it after releasing the button if the cursor has moved its position to any title bar while being active

STEPS TO REPRODUCE
1. Enable legacy x11 app button eavesdropping including mouse buttons
2. Bind Discord's push-to-talk to a mouse side button
3. Move to cursor to any title bar and press the bound button

OBSERVED RESULT
Button events not being forwarded to the app

EXPECTED RESULT
Push-to-talk is being activated and deactivated as expected

SOFTWARE/OS VERSIONS
Linux: Fedora Linux 42 KDE Plasma Desktop Edition
KDE Plasma Version: 6.3.4
KDE Frameworks Version: 6.13.0
Qt Version: 6.9.0

ADDITIONAL INFORMATION
Discord installed via Flatpak, button eavesdropping is set to "Always" with mouse button inclusion enabled