I use two monitors. One runs spring and the other runs springlobby, chat, web, etc. When I click on the second monitor, spring is minimized. I find this annoying but it is the default SDL2 behaviour.
You can prevent spring from minimizing itself when it loses focus using the following environment variable (linux syntax):
export SDL_HINT_VIDEO_MINIMIZE_ON_FOCUS_LOSS=0
The analogous windows environment variable should work as well.
Prevent spring from minimizing when you click on 2nd display
Moderator: Moderators
Re: Prevent spring from minimizing when you click on 2nd display
It probably doesn't minimize if you don't use FullScreen
Re: Prevent spring from minimizing when you click on 2nd display
I use windowed/borderless mode and this still happens unless you set the environment variable.
In 100.0 the problem was even more severe, I had to hack in the SDL_SetHint() call as the environment variable alone would not suffice.
In 100.0 the problem was even more severe, I had to hack in the SDL_SetHint() call as the environment variable alone would not suffice.
Re: Prevent spring from minimizing when you click on 2nd display
I use windowed mode, not fullscreen.
Re: Prevent spring from minimizing when you click on 2nd display
this behaviour could explain some performance related bugs...
mantised: https://springrts.com/mantis/view.php?id=5323 (imo a config setting is better for now)
mantised: https://springrts.com/mantis/view.php?id=5323 (imo a config setting is better for now)
Re: Prevent spring from minimizing when you click on 2nd display
Is that when it randomly decides to kill your FPS?abma wrote:this behaviour could explain some performance related bugs...
I've noticed something like this when testing Chobby, it would kill my FPS after a /luaui reload (which might also set fullscreen/windowed behavior), but it can be restored to normal by toggling maximize.
Re: Prevent spring from minimizing when you click on 2nd display
exactly, but atm its just a "could be related".gajop wrote:Is that when it randomly decides to kill your FPS?
I've noticed something like this when testing Chobby, it would kill my FPS after a /luaui reload (which might also set fullscreen/windowed behavior), but it can be restored to normal by toggling maximize.
- Forboding Angel
- Evolution RTS Developer
- Posts: 14673
- Joined: 17 Nov 2005, 02:43
Re: Prevent spring from minimizing when you click on 2nd display
Spring's borderless window kills fps for me, and it doesn't act correctly in any case.
So, I use window manager (mmfh). It is invaluable to me as windows has shit window management.
My Window Management folder on Gdrive (because these programs are difficult to find) of programs that I use to mane windo management in windows not so cumbersome:
https://drive.google.com/folderview?id= ... sp=sharing
So, I use window manager (mmfh). It is invaluable to me as windows has shit window management.
My Window Management folder on Gdrive (because these programs are difficult to find) of programs that I use to mane windo management in windows not so cumbersome:
https://drive.google.com/folderview?id= ... sp=sharing