Bug 487189 - Pointer confinement temporarily lost when leaving fullscreen
Summary: Pointer confinement temporarily lost when leaving fullscreen
Status: REPORTED
Alias: None
Product: kwin
Classification: Plasma
Component: input (show other bugs)
Version: 6.0.4
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-05-18 14:57 UTC by Frank Praznik
Modified: 2024-05-18 15:00 UTC (History)
0 users

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


Attachments
WAYLAND_DEBUG=1 output (316.39 KB, text/plain)
2024-05-18 14:57 UTC, Frank Praznik
Details

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