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
To note, this works as expected in GNOME, Weston, and Sway, so not likely to be an SDL bug.