# HG changeset patch # User Sam Lantinga # Date 1259658268 0 # Node ID 7931094e4c4811bb052086d7bcf991ed0e2d1e7a # Parent 98a819296cdc95ffda2f30497bc51565a86dc4e9 Explicitly clear fullscreen status rather than relying on the window focus behavior. diff -r 98a819296cdc -r 7931094e4c48 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];