Only leave fullscreen mode if we're actually going to minimize

This commit is contained in:
Sam Lantinga 2019-04-22 16:25:49 -07:00
parent 9950271bb6
commit f1b57f3785
1 changed files with 3 additions and 2 deletions

View File

@ -2216,9 +2216,10 @@ SDL_MinimizeWindow(SDL_Window * window)
return;
}
SDL_UpdateFullscreenMode(window, SDL_FALSE);
if (_this->MinimizeWindow) {
/* Only leave fullscreen mode if we're actually going to minimize */
SDL_UpdateFullscreenMode(window, SDL_FALSE);
_this->MinimizeWindow(_this, window);
}
}