csgo-osx-linux icon indicating copy to clipboard operation
csgo-osx-linux copied to clipboard

CS2 - Display Mode "Fullscreen Windowed" minimizes the game when you tab out. Unlike typical "Borderless Windowed" implementations.

Open ipaqmaster opened this issue 2 years ago • 5 comments

Your system information

  • System information from steam (Steam -> Help -> System Information) in a gist:
  • Have you checked for system updates?: [Yes/No]

Please describe your issue in as much detail as possible:

The game's borderless mode doesn't function as that feature typically does (Allowing tab-outs without the game window vanishing / minimizing itself like Fullscreen options in games traditionally do)

Personally I use OBS's Replay Buffer and NVIDIA's nvenc to shadowplay my matches in case something cool happens. But when I tab out, CS2 minimizes itself preventing me from potentially capturing a highlight for a teammate.

Steps for reproducing this issue:

  1. Open CS2
  2. Select "Fullscreen Windowed" as your Display Mode
  3. Tab out and watch the game hide itself.

Known workarounds:

Setting the Display Mode to "Windowed" with native res and then running wmctrl -r 'Counter-Strike 2' -b add,fullscreen to remove the window decorations recreates a Borderless Windowed experience without the game minimising when focus is lost.

wmctrl -r 'Counter-Strike 2' -b toggle,fullscreen can also be used repeatedly to toggle the game's borderless/bordered window decorations.

ipaqmaster avatar Sep 29 '23 04:09 ipaqmaster

I posted a temporary fix in #3460, it even allows you to use the real fullscreen mode (which allows setting the refresh rate) without the game minimizing when tabbing out. The only issue is that you might have to reselect the game window in OBS after restarting the game each time.


CS2: Prevent minimizing when tabbing out of fullscreen

Issue transferred from https://github.com/ValveSoftware/csgo-osx-linux/issues/3460. @aequabit posted on 2023-10-11T03:26:12:

I don't have an issue, but I suggest setting SDL_VIDEO_MINIMIZE_ON_FOCUS_LOSS=0 in the environment variables by default, so tabbing out doesn't cause an annoying transition while switching monitor signals.

Right now the workaround is to put this in your CS2 launch options (with additional arguments like -vulkan after that): SDL_VIDEO_MINIMIZE_ON_FOCUS_LOSS=0 %command%

aequabit avatar Oct 11 '23 03:10 aequabit

I have the window bouncing when switching from Windowed to Fullscreen Windowed. Quite funny, but a little hard to get out of, but it fixes its self.

https://github.com/ValveSoftware/csgo-osx-linux/assets/17692119/28f8184a-1bc8-4edc-a87f-366d3381ba93

ianwijma avatar Oct 14 '23 13:10 ianwijma

I have the window bouncing when switching from Windowed to Fullscreen Windowed. Quite funny, but a little hard to get out of, but it fixes its self. 2023-10-15.00-23-25.mp4

Pepe jam

aequabit avatar Oct 23 '23 04:10 aequabit

any news?

MrThursby avatar Oct 26 '23 05:10 MrThursby

This seems to still be a thing. Borderless fullscreen minimizes itself when the game is tabbed out of without any extra launch options.

SDL_VIDEO_MINIMIZE_ON_FOCUS_LOSS=0 %command% does still work.

ipaqmaster avatar Apr 25 '25 06:04 ipaqmaster