Commit c663d731f1f5f3b41629ad0fa1d16713e0e4d593

Ryan C. Gordon 2014-03-15T15:35:15

Mac: Make sure window is still showing when we exit a fullscreen space.

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/video/cocoa/SDL_cocoawindow.m b/src/video/cocoa/SDL_cocoawindow.m
index c4dee21..21f2697 100644
--- a/src/video/cocoa/SDL_cocoawindow.m
+++ b/src/video/cocoa/SDL_cocoawindow.m
@@ -612,6 +612,8 @@ SetWindowStyle(SDL_Window * window, unsigned int style)
         window->w = 0;
         window->h = 0;
         [self windowDidResize:aNotification];
+
+        Cocoa_ShowWindow(SDL_GetVideoDevice(), window);
     }
 }