ValveSoftware / gamescope

SteamOS session compositing window manager
Other
3.15k stars 213 forks source link

Option to resize resizable windows to fullscreen size #1081

Open StratusFearMe21 opened 10 months ago

StratusFearMe21 commented 10 months ago

Im having an issue where running Jackbox games on the Steam Deck under gaming mode results in the game downscaling itself despite the fact that the game resolution in Steam is set to Native. I can fix this by changing the gamescope-session to launch gamescope with --force-windows-fullscreen, but this breaks GameMaker Studio 2 games which just appear black when playing with this option

TL;DR, is there a way to introduce a happy medium where it only force resizes windows that are marked as resizable?

StratusFearMe21 commented 10 months ago

I've fixed the issue on my end. After doing some research, I found that to fix this fully you can put this into the Jackbox games launch options

xprop -root -format GAMESCOPE_FORCE_WINDOWS_FULLSCREEN 8c -set GAMESCOPE_FORCE_WINDOWS_FULLSCREEN 1; %command%

and this into the GameMaker Studio 2 games launch options

xprop -root -remove GAMESCOPE_FORCE_WINDOWS_FULLSCREEN; %command%

I'm happy to close this issue, but given this is sort-of a Band-aid fix, I'll leave it open