From 2f80d97e1770879c8d947e5d5d775c17ad2b673f Mon Sep 17 00:00:00 2001 From: The412Banner Date: Wed, 23 Sep 2026 08:17:35 -0400 Subject: [PATCH] session: gamescope forces game windows to fill the screen in Steam mode (a game that shrank its window while the Steam menu was open came back in the top-left corner) --- tools/linuxfs/overlay/usr/local/bin/bannerlator-session | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tools/linuxfs/overlay/usr/local/bin/bannerlator-session b/tools/linuxfs/overlay/usr/local/bin/bannerlator-session index eaba9e40e7..3dcc246aa6 100755 --- a/tools/linuxfs/overlay/usr/local/bin/bannerlator-session +++ b/tools/linuxfs/overlay/usr/local/bin/bannerlator-session @@ -105,6 +105,11 @@ if [ -z "${BL_INSIDE:-}" ]; then args+=(-r "$BL_REFRESH") fi [ "$mode" = steam ] && args+=(-e) + # A game that resizes its own window when it loses focus (the Steam menu opening over it) comes + # back smaller, and gamescope draws a window that is not flagged fullscreen at its own size in + # the top-left corner. Forcing every window to the output's size keeps it filling the screen. + # BL_GAMESCOPE_FORCE_FULLSCREEN=0 turns it off. + [ "$mode" = steam ] && [ "${BL_GAMESCOPE_FORCE_FULLSCREEN:-1}" = 1 ] && args+=(--force-windows-fullscreen) # HDR10: the app opened its compositor's colour-management gate for this session (BL_HDR=1); # gamescope then offers HDR to its clients through the same wp_color_manager_v1 it binds on ours. [ "${BL_HDR:-0}" = 1 ] && args+=(--hdr-enabled)