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

main
Sam Lantinga 2014-03-15 16:27:06 -07:00
parent c663d731f1
commit 9245c93044
1 changed files with 4 additions and 1 deletions

View File

@ -613,9 +613,12 @@ SetWindowStyle(SDL_Window * window, unsigned int style)
window->h = 0;
[self windowDidResize:aNotification];
/* FIXME: Why does the window get hidden? */
if (window->flags & SDL_WINDOW_SHOWN) {
Cocoa_ShowWindow(SDL_GetVideoDevice(), window);
}
}
}
-(NSApplicationPresentationOptions)window:(NSWindow *)window willUseFullScreenPresentationOptions:(NSApplicationPresentationOptions)proposedOptions
{