Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Only show the window if it's supposed to be shown.
- Loading branch information
Showing
with
4 additions
and
1 deletion.
-
+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); |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|