From f1b57f3785d99fa7371be4b5dee0c9f1458905b6 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Mon, 22 Apr 2019 16:25:49 -0700 Subject: [PATCH] Only leave fullscreen mode if we're actually going to minimize --- src/video/SDL_video.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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); } }