Skip to content
Permalink
Browse files

Only show the window if it's supposed to be shown.

  • Loading branch information
slouken committed Mar 15, 2014
1 parent c663d73 commit 9245c930440c2ce5c44a997790655cf707188861
Showing with 4 additions and 1 deletion.
  1. +4 −1 src/video/cocoa/SDL_cocoawindow.m
@@ -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);
}
}
}

0 comments on commit 9245c93

Please sign in to comment.