Only leave fullscreen mode if we're actually going to minimize
authorSam Lantinga <slouken@libsdl.org>
Mon, 22 Apr 2019 16:25:49 -0700
changeset 127106c510e7c6884
parent 12709 d268ce129edb
child 12711 60b397c49d36
Only leave fullscreen mode if we're actually going to minimize
src/video/SDL_video.c
     1.1 --- a/src/video/SDL_video.c	Mon Apr 22 16:19:52 2019 -0700
     1.2 +++ b/src/video/SDL_video.c	Mon Apr 22 16:25:49 2019 -0700
     1.3 @@ -2216,9 +2216,10 @@
     1.4          return;
     1.5      }
     1.6  
     1.7 -    SDL_UpdateFullscreenMode(window, SDL_FALSE);
     1.8 -
     1.9      if (_this->MinimizeWindow) {
    1.10 +        /* Only leave fullscreen mode if we're actually going to minimize */
    1.11 +        SDL_UpdateFullscreenMode(window, SDL_FALSE);
    1.12 +
    1.13          _this->MinimizeWindow(_this, window);
    1.14      }
    1.15  }