Explicitly clear fullscreen status rather than relying on the window focus behavior.
authorSam Lantinga <slouken@libsdl.org>
Tue, 01 Dec 2009 09:04:28 +0000
changeset 35037931094e4c48
parent 3502 98a819296cdc
child 3504 919d88c202cf
Explicitly clear fullscreen status rather than relying on the window focus behavior.
src/video/SDL_video.c
     1.1 --- a/src/video/SDL_video.c	Tue Dec 01 08:56:12 2009 +0000
     1.2 +++ b/src/video/SDL_video.c	Tue Dec 01 09:04:28 2009 +0000
     1.3 @@ -1488,8 +1488,9 @@
     1.4      if (!_this) {
     1.5          return;
     1.6      }
     1.7 +
     1.8      /* Restore video mode, etc. */
     1.9 -    SDL_SendWindowEvent(windowID, SDL_WINDOWEVENT_FOCUS_LOST, 0, 0);
    1.10 +    SDL_SetWindowFullscreen(windowID, 0);
    1.11  
    1.12      for (i = 0; i < _this->num_displays; ++i) {
    1.13          SDL_VideoDisplay *display = &_this->displays[i];