Skip to content

Commit

Permalink
Only show the window if it's supposed to be shown.
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Mar 15, 2014
1 parent c663d73 commit 9245c93
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/video/cocoa/SDL_cocoawindow.m
Expand Up @@ -613,7 +613,10 @@ - (void)windowDidExitFullScreen:(NSNotification *)aNotification
window->h = 0;
[self windowDidResize:aNotification];

Cocoa_ShowWindow(SDL_GetVideoDevice(), window);
/* FIXME: Why does the window get hidden? */
if (window->flags & SDL_WINDOW_SHOWN) {
Cocoa_ShowWindow(SDL_GetVideoDevice(), window);
}
}
}

Expand Down

0 comments on commit 9245c93

Please sign in to comment.