Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: check baselayer sequence before rearranging #193

Merged
merged 3 commits into from
Sep 25, 2024

Conversation

R1kaB3rN
Copy link
Member

@R1kaB3rN R1kaB3rN commented Sep 24, 2024

This PR updates the window setup routine to only rearrange the value from the GAMESCOPECTRL_BASELAYER_APPID atom when it needs to be.

Closes #192 and tested on SteamOS 3.6.15 using Steam Version 1726683985 against a non-Steam game for potential regressions.

TODO:

  • Sanity check on the Steam Deck

@R1kaB3rN R1kaB3rN marked this pull request as ready for review September 25, 2024 00:19
@R1kaB3rN R1kaB3rN force-pushed the fix-window-in-bigpicture branch 3 times, most recently from 35c873b to 3954cc4 Compare September 25, 2024 00:45
- The current window setup codepath that's gated behind the check for XDG_CURRENT_DESKTOP and STEAM_MULTIPLE_XWAYLANDS didn't account for situations when umu-launcher is being used with unofficial gamescope session scripts within a non-Steam-deck environment. In those cases, both those variables would be set as those scripts would create 2 xwayland servers just like the Steam Deck gamescope session, causing the game window to not appear in the foreground as the launcher would rearrange the already correct baselayer sequence. While the current logic was incorrect, it highlighted an existing problem -- the launcher shouldn't always be assuming the sequence is incorrect and rearranging the baselayer order sequence only if the window atom exists. Instead, it should only be rearranging it when it needs to be.
@R1kaB3rN R1kaB3rN merged commit 9547922 into Open-Wine-Components:main Sep 25, 2024
5 of 6 checks passed
@R1kaB3rN R1kaB3rN deleted the fix-window-in-bigpicture branch September 25, 2024 00:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Heroic Games Launcher games launched through Steam on a gamescope session do not work
1 participant