Confinement region for pointer is outdated after window creation/resize
Affected version
- Ubuntu 22.04/22.10 and Fedora 37/38
- GNOME 42.5/43.1/43.3/44.beta
- The issue appears only on Wayland
Bug summary
Confinement region is outdated after window creation/resize. After switching an active window back and forth (Alt - Tab
) without any other action the region becomes valid until next resize. It's reproducible with (0 A.D.), simple SDL2 demo with SDL_SetWindowGrab(window, SDL_TRUE)
and confinement_test_from_2223.tar.bz2
.
Refs #2223 (closed) and #2227 (closed).
Steps to reproduce
- Run 0 A.D. or
confinement_test_from_2223
-
Alt + Tab
twice - Resize the window by a hotkey (for example
Command + Right
) -
Alt + Tab
twice
What happened
On steps 1 and 3 pointer is restricted to incorrect regions. After executing steps 2 and 4 pointer is restricted correctly.
What did you expect to happen
On each step pointer is restricted correctly.