Maximized windows end up inconsistent after switching to a larger display
Affected version
- Arch Linux
- GNOME 40.4 (issue was present since at least 3.38)
- Wayland session
Bug summary
After changing displays (e. g. working on a laptop, closing the laptop lid and plugging in an external display with a larger resolution), previously maximized windows, especially those that are inactive/obscured by other windows, end up in an inconsistent state (that is: keep maximized decorations but do not change their size).
Steps to reproduce
- On a laptop with less than 4K screen resolution, open a few maximized windows on top of each other
- Close the laptop lid and connect a 4K external display
- Inspect previously open windows by alt-tabbing
What happened
Previously maximized windows are not "de-maximized" or "re-maximized", i. e. keep their previous size (i. e. sized to the laptop panel, not the external display), but keep decorations and placement as if they were maximized (i. e. no borders, no shadows, top-left corner position).
What did you expect to happen
I expect previously maximized windows to get transparently adjusted to the new display resolution, preferably without any flickering (so that on the first alt-tab the user must already see the properly re-maximized window).
Relevant logs, screenshots, screencasts etc.
(screenshots TBD)