ValveSoftware / gamescope

SteamOS session compositing window manager
Other
2.83k stars 189 forks source link

Plasma 6 Wayland multi-monitor issue #1224

Open DonKatsu opened 3 months ago

DonKatsu commented 3 months ago

Not sure what could be done about this since I think it's the result of a Plasma issue. But I can't seem to get any traction with it. KDE bug tracker issue I attempted KDE discuss thread

The tl;dr is on Plasma 5.27.X, the order of my two displays with wl_output was always the same. DP1 followed by DP2. gamescope -f worked as expected. On Plasma 6, it has a chance to shuffle the order each session start. xdg_output shuffles as well, but since xrandr follows wl_putput's order I'm thinking that's the relevant one? I checked with two machines (both using AMD GPUs) and observed the same behaviors on each. I had used Fedora 39 KDE for Plasma 5.27.10, CachyOS and KDE Neon for Plasma 6. I tried Gnome 45.4 as well and its wl_output order seemed fixed with the same order as Plasma 5.27.X.

When wl_output order is DP2 followed by DP1, trying to run something with gamescope -f opens on the second monitor instead of the primary. If I restart the session until I get a wl_output order of DP1 followed by DP2, gamescope -f opens on the primary monitor as expected. If I use SDL_VIDEODRIVER=x11 gamescope -f then the window opens on the primary monitor even when wl_output order is DP2 followed by DP1.

Distro: CachyOS Kernel: 6.8.3 DE: KDE Plasma 6.0.3 GPU: AMD RX 6700 XT Gamescope version: 3.14.2

DonKatsu commented 2 months ago

Gamescope 3.14.3 seems to have worked around this? gamescope -f opens on the primary designated monitor with either wl_output order. Downgrading to Gamescope 3.14.2 still has gamescope -f opening on the wrong screen when wl_output is in the other order.

devurandom commented 1 month ago

Is this related to https://github.com/ValveSoftware/gamescope/issues/645 ?