|
@@ -3060,7 +3060,8 @@ ShouldMinimizeOnFocusLoss(SDL_Window * window)
|
|
/* Real fullscreen windows should minimize on focus loss so the desktop video mode is restored */
|
|
/* Real fullscreen windows should minimize on focus loss so the desktop video mode is restored */
|
|
hint = SDL_GetHint(SDL_HINT_VIDEO_MINIMIZE_ON_FOCUS_LOSS);
|
|
hint = SDL_GetHint(SDL_HINT_VIDEO_MINIMIZE_ON_FOCUS_LOSS);
|
|
if (!hint || !*hint || SDL_strcasecmp(hint, "auto") == 0) {
|
|
if (!hint || !*hint || SDL_strcasecmp(hint, "auto") == 0) {
|
|
- if ((window->flags & SDL_WINDOW_FULLSCREEN_DESKTOP) == SDL_WINDOW_FULLSCREEN_DESKTOP) {
|
|
|
|
|
|
+ if ((window->flags & SDL_WINDOW_FULLSCREEN_DESKTOP) == SDL_WINDOW_FULLSCREEN_DESKTOP ||
|
|
|
|
+ _this->disable_display_mode_switching == SDL_TRUE) {
|
|
return SDL_FALSE;
|
|
return SDL_FALSE;
|
|
} else {
|
|
} else {
|
|
return SDL_TRUE;
|
|
return SDL_TRUE;
|