diff --git a/src/video/cocoa/SDL_cocoawindow.m b/src/video/cocoa/SDL_cocoawindow.m index 21f26975f..a55ab4967 100644 --- a/src/video/cocoa/SDL_cocoawindow.m +++ b/src/video/cocoa/SDL_cocoawindow.m @@ -613,7 +613,10 @@ SetWindowStyle(SDL_Window * window, unsigned int style) 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); + } } }