changeset 3503:7931094e4c48

Explicitly clear fullscreen status rather than relying on the window focus behavior.
author Sam Lantinga <slouken@libsdl.org>
date Tue, 01 Dec 2009 09:04:28 +0000
parents 98a819296cdc
children 919d88c202cf
files src/video/SDL_video.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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];