Wayland displays are mixed up after suspend.
Affected version
Fedora 32 (Workstation Edition), Gnome on Wayland
Bug summary
Two displays setup as attached screenshot. After login fullscreen applications (e.g. games started from Steam) use the primary display as expected. Output from xrandr
at this point is attached as xrandr-before.txt.
After computer waking up from sleep the same fullscreen applications now starts on the secondary display, every time until logging out and in again. I've reproduced this behaviour with several games, including Hollow Knight, Dark Souls™: REMASTERED and Coloring Pixels.
Gnome's display settings look the same but output from xrandr are different: first run after waking up from sleep shows 3 displays connected (see attached xrandr-after-1.txt) and second run right after shows 2 displays again, but the primary display as the last (see attached xrandr-after-2.txt).
Steps to reproduce
- Login and start a fullscreen Steam game on primary display.
- Close game and put computer to sleep by Power off/Log out -> Suspend.
- Wake up computer and start the same Steam game again.
What happened
Steam game starts on secondary display.
What did you expect to happen
Steam game to open on primary display, as it did prior to sleep/suspend.