mirror of
https://github.com/yawut/SDL.git
synced 2026-09-07 08:36:19 -05:00
- fix misleading hint about minimising on focus loss
This commit is contained in:
@@ -2087,7 +2087,7 @@ SDL_OnWindowFocusLost(SDL_Window * window)
|
||||
|
||||
SDL_UpdateWindowGrab(window);
|
||||
|
||||
/* If we're fullscreen on a single-head system and lose focus, minimize */
|
||||
/* If we're fullscreen and lose focus, minimize unless the hint tells us otherwise */
|
||||
if ((window->flags & SDL_WINDOW_FULLSCREEN) && ShouldMinimizeOnFocusLoss() ) {
|
||||
SDL_MinimizeWindow(window);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user