ValveSoftware / csgo-osx-linux

Counter-Strike: Global Offensive
http://counter-strike.net
784 stars 69 forks source link

Alt tabbing breaks fullscreen #3679

Open XaapX opened 8 months ago

XaapX commented 8 months ago

Hello,

Config: AMD vega 64 Archlinux On a freesync monitor mesa 24.0.1

When using fullscreen mode and alt-tabbing out and back in, while the game still thinks it is in fullscreen mode, my task bar is above the cs window and nothing seems to make it really full screen again except going in video settings, doing dummy changes and re-enabling fullscreen.

This is a regression since a few days (probably arms race update) as I never had this issue before.

Note: Also it seems to crash randomly when alt-tabbing now, when previously my game never crashed. Not sure if related to this issue though

kisak-valve commented 8 months ago

Previously mentioned on https://github.com/ValveSoftware/csgo-osx-linux/issues/3530#issuecomment-1936569841.

The add-on issue is being tracked at #3656.

ZeroYamaoka commented 8 months ago

This startup command helped me with this isuee SDL_VIDEO_MINIMIZE_ON_FOCUS_LOSS=0

blamedrop commented 8 months ago

See https://github.com/ValveSoftware/csgo-osx-linux/issues/3454#issuecomment-1945281781:

Workaround that worked for me

  • Setting the game to FULLSCREEN WINDOWED in settings
  • Adding SDL_VIDEO_MINIMIZE_ON_FOCUS_LOSS=0 %command% to launch options
  • Removing -fullscreen from launch options

With that the game starts in full-screen properly and keeps the full-screen window state after window focus is lost and regained.

NO-ob commented 8 months ago

https://github.com/ValveSoftware/csgo-osx-linux/issues/3650 should be fixed in next update

XaapX commented 8 months ago

Still happening with today's update

XaapX commented 8 months ago

I confirm the workaround posted by blamedrop works fine. (even with keeping plain fullscreen, not fullscreen windowed)

Ori-Pixel commented 7 months ago

Can confirm the workaround by blamedrop works. It's a similar issue to dota 2 linux. In dota, this is a visible video option, while here you have to specify it in console commands.

XaapX commented 5 months ago

Hello. It is fixed for me. I was able to remove SDL_VIDEO_MINIMIZE_ON_FOCUS_LOSS=0 and game stays fullscreen when I alt tab out and back in

XaapX commented 4 months ago

Surprising things regarding this issue: I just swapped my vega 64 GPU for a 7900GRE and while it used to be definitely fixed for me with vega, it is now back (and slightly worse) with the 7900...

With vega 64, initially the workaround was only to set env var SDL_VIDEO_MINIMIZE_ON_FOCUS_LOSS=0 while I could keep fullscreen on. Then it somehow got fixed (either in game or my system updated) and no workaround was ever needed at all for me.

Now, I switch to 7900GRE, same OS, same display stack and drivers and the issue is back. And even more surprising: I had to follow the workaround completely this time. Setting only SDL_VIDEO_MINIMIZE_ON_FOCUS_LOSS=0 as before was not sufficient, I do need to use windowed fullscreen and not true full screen.

Very weird, but it seems that the GPU itself is somehow affecting the issue.

XaapX commented 1 month ago

Still a problem with current CS2 version