Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Explicitly clear fullscreen status rather than relying on the window …
Browse files Browse the repository at this point in the history
…focus behavior.
  • Loading branch information
slouken committed Dec 1, 2009
1 parent 50764a5 commit 6a0f585
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/video/SDL_video.c
Expand Up @@ -1488,8 +1488,9 @@ SDL_DestroyWindow(SDL_WindowID windowID)
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];
Expand Down

0 comments on commit 6a0f585

Please sign in to comment.