Bug 487189

Summary: Pointer confinement temporarily lost when leaving fullscreen
Product: [Plasma] kwin Reporter: Frank Praznik <frank.praznik>
Component: inputAssignee: KWin default assignee <kwin-bugs-null>
Status: REPORTED ---    
Severity: normal    
Priority: NOR    
Version: 6.0.4   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: WAYLAND_DEBUG=1 output

Description Frank Praznik 2024-05-18 14:57:22 UTC
Created attachment 169595 [details]
WAYLAND_DEBUG=1 output

After leaving fullscreen mode with pointer confinement active on a window, the pointer is no longer confined until it leaves and re-enters the window.

This can be replicated with testwm in the SDL 3 test suite.

STEPS TO REPRODUCE
1. Run "testwm --grab" (the pointer should be confined to the window)
2. With the pointer in the window, press alt+enter to enter fullscreen.
3. With the pointer positioned such that it will be where the non-fullscreen window will be restored to, press alt+enter to leave fullscreen.
4. The pointer can leave the window, and won't be confined again until it re-enters.

The pointer should remain confined to the window without an additional leave+enter cycle after leaving fullscreen.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Fedora 40
KDE Plasma Version: 6.0.4
Comment 1 Frank Praznik 2024-05-18 15:00:04 UTC
To note, this works as expected in GNOME, Weston, and Sway, so not likely to be an SDL bug.