Change in external monitors whilst sleeping not accounted for correctly upon waking
I am not 100% sure this is a mutter issue, so do let me know if this is the wrong place for it.
I'm on Arch Linux with gnome-shell, mutter, and gdm 3.30.2, using GDM to log in to an X session. I have Intel graphics, though there's also a nvidia card but it is off almost all the time (turned on sometimes with bbswitch) so I suspect perhaps not relevant.
When I go through the following steps:
- Be using my laptop with two external monitors (haven't checked if it occurs with only one), with the laptop lid closed and latpop screen off (again, haven't checked if this is relevant, I can check later and update this report).
- Put the laptop to sleep via the menu (holding alt and clicking the button that appears over the shutdown button).
- Disconnect the external monitors
- Wake the laptop from sleep
- Unlock with password from the lock screen
I often find myself on a desktop with no windows visible, though the windows are in the alt-tab menu. Moving the mouse to the edges of the screen reveals that there is more desktop space, as if I were using an external monitor in addition to the laptop screen (even though all external monitors are disconencted). I can restart gnome-shell with alt+f2 + r to restore things to normal - then all the windows come onto my screen and there is no dead space off-screen.
So it seems like there is some incorrect handling of the disconnected of external monitors whilst the laptop is sleeping.
I can provide more info upon request! I can test to see which exact factors are relevant to triggering the behaviour.