Page 1 of 1
Prevent spring from minimizing when you click on 2nd display
Posted: 28 Jul 2016, 19:47
by Gambit
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.
Re: Prevent spring from minimizing when you click on 2nd display
Posted: 28 Jul 2016, 20:14
by gajop
It probably doesn't minimize if you don't use FullScreen
Re: Prevent spring from minimizing when you click on 2nd display
Posted: 28 Jul 2016, 21:33
by Gambit
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.
Re: Prevent spring from minimizing when you click on 2nd display
Posted: 28 Jul 2016, 22:14
by Gambit
I use windowed mode, not fullscreen.
Re: Prevent spring from minimizing when you click on 2nd display
Posted: 29 Jul 2016, 01:02
by abma
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)
Re: Prevent spring from minimizing when you click on 2nd display
Posted: 29 Jul 2016, 01:59
by gajop
abma wrote:this behaviour could explain some performance related bugs...
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.
Re: Prevent spring from minimizing when you click on 2nd display
Posted: 29 Jul 2016, 14:26
by abma
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.
exactly, but atm its just a "could be related".
Re: Prevent spring from minimizing when you click on 2nd display
Posted: 29 Jul 2016, 22:01
by Forboding Angel
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
Re: Prevent spring from minimizing when you click on 2nd display
Posted: 17 Sep 2016, 03:15
by abma