diff --git a/src/video/SDL_video.c b/src/video/SDL_video.c index 08590cafd..e8a1f95ca 100644 --- a/src/video/SDL_video.c +++ b/src/video/SDL_video.c @@ -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); } }