Skip to content

Commit

Permalink
Only leave fullscreen mode if we're actually going to minimize
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Apr 22, 2019
1 parent 9950271 commit f1b57f3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/video/SDL_video.c
Expand Up @@ -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);
}
}
Expand Down

0 comments on commit f1b57f3

Please sign in to comment.