Bug 504587

Summary: Prevent unmanaged X11 windows from grabbing the cursor
Product: [Plasma] kwin Reporter: steemandlinux <steemandlinux>
Component: xwaylandAssignee: KWin default assignee <kwin-bugs-null>
Status: CONFIRMED ---    
Severity: wishlist CC: nate, steemandlinux, xaver.hugl
Priority: NOR    
Version First Reported In: 6.3.5   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description steemandlinux 2025-05-20 23:54:40 UTC
SUMMARY

When I'm running a native x64 Lightsmark 2008 v.2.0 demo. It's trapping mouse cursor and focus.

STEPS TO REPRODUCE
1. Download a native lightsmark https://dee.cz/lightsmark/Lightsmark2008.2.0.tar.bz2
2. Run it with highest xwayland security settings and you will see that focus and mouse were trapped.

EXPECTED RESULT
We must free mouse and change focus to another app.


SOFTWARE/OS VERSIONS
(available in the Info Center app, or by running `kinfo` in a terminal window)
Linux/KDE Plasma: 6.3.5
KDE Plasma Version: 6.3.5
KDE Frameworks Version: 6.14.0
Qt Version: 6.9.0

ADDITIONAL INFORMATION:
xorg-xwayland 24.1.6-1
Comment 1 Nate Graham 2025-05-21 13:34:25 UTC
Can you verify that it is in fact running in XWayland?

Also note that the XWayland security settings we expose in System Settings aren't related to pointer confinement; they're only about apps' ability to snoop on mouse and keyboard events when unfocused.
Comment 2 steemandlinux 2025-05-22 11:21:50 UTC
Yes, the Debug console is showing X11 Unmanaged Windows
Comment 3 Bug Janitor Service 2025-06-06 03:48:12 UTC
๐Ÿ›๐Ÿงน โš ๏ธ This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information, then set the bug status to REPORTED. If there is no change for at least 30 days, it will be automatically closed as RESOLVED WORKSFORME.

For more information about our bug triaging procedures, please read https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging.

Thank you for helping us make KDE software even better for everyone!
Comment 4 steemandlinux 2025-06-18 19:22:23 UTC
Yes, the Debug console is showing X11 Unmanaged Windows
Comment 5 Zamundaaa 2025-11-06 22:15:31 UTC
Perhaps we should always disallow unmanaged windows from grabbing the pointer, as you can't just alt+tab away from it, it is rather problematic.
I don't know if that would cause any practical regressions though, it's always a bit of a lottery with X11 things.