Bug 504587 - Prevent unmanaged X11 windows from grabbing the cursor
Summary: Prevent unmanaged X11 windows from grabbing the cursor
Status: CONFIRMED
Alias: None
Product: kwin
Classification: Plasma
Component: xwayland (other bugs)
Version First Reported In: 6.3.5
Platform: Arch Linux Linux
: NOR wishlist
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-05-20 23:54 UTC by steemandlinux
Modified: 2025-11-06 22:15 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.