-
Notifications
You must be signed in to change notification settings - Fork 419
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add setting to control automatic minimising on focus loss in fullscreen mode #6094
Conversation
- applies to fullscreen only - uses `SDL_HINT_VIDEO_MINIMIZE_ON_FOCUS_LOSS` - mobile is not considered
"Minimising a window" probably isn't even valid on mobile, so default to `false` to show that we don't ever want to try doing that.
Hi, I can't find this setting you are mentioning here. It seems like ever since this feature was released my game has been launching like the image below despite it being in fullscreen mode. Toggling fullscreen mode on and off seems to temporarily fix it but it occurs once again when I relaunch. If you ever need my platform details here:
Let me know if you need anything else, thank you. |
|
ah I see, thank you for pointing me in the right direction. 👍 |
It is planned to be exposed via settings right? I don't think we should ever recommend editing INI files directly to users. |
|
Uses
SDL_HINT_VIDEO_MINIMIZE_ON_FOCUS_LOSS
on desktop (and iOS, but I'm not sure if it does anything).Mobile isn't really a consideration here, as the OS has full control over "minimising a window".
Added tests that require manually alt-tabbing. Tested on windows 11 with DirectX (seamless transition) and OpenGL legacy (black screen flicker).