Windows appearing on a non existant screen after exiting fullscreen
Affected version
OS: Arch Linux, kernel 6.7.5-zen Mutter: v45.4 The issue goes away after one minimization in Xorg, but stays infinitely in Wayland
Bug summary
When exiting a fullscreen window on a second monitor after closing the laptop lid, the window goes on a non existant third display, making it impossible to open without reopening the laptop lid.
Steps to reproduce
- Move a window to a second monitor.
- Fullscreen it.
- Close the laptop lid, moving the primary screen to second monitor.
- Exit fullscreen.
- Attempt to minimize and maximize it.
What happened
The window goes to a nonexistant third monitor.
What did you expect to happen
The window properly goes to the second monitor, now being the primary monitor.
Relevant logs, screenshots, screencasts etc.
Demonstration of the bug: https://i.imgur.com/xLV8xkS.mp4