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 3503 7931094e4c48
parent 3502 98a819296cdc
child 3504 919d88c202cf
Explicitly clear fullscreen status rather than relying on the window focus behavior.
src/video/SDL_video.c
--- a/src/video/SDL_video.c	Tue Dec 01 08:56:12 2009 +0000
+++ b/src/video/SDL_video.c	Tue Dec 01 09:04:28 2009 +0000
@@ -1488,8 +1488,9 @@
     if (!_this) {
         return;
     }
+
     /* Restore video mode, etc. */
-    SDL_SendWindowEvent(windowID, SDL_WINDOWEVENT_FOCUS_LOST, 0, 0);
+    SDL_SetWindowFullscreen(windowID, 0);
 
     for (i = 0; i < _this->num_displays; ++i) {
         SDL_VideoDisplay *display = &_this->displays[i];