From 0e5cc8dff476d7f4a14b7f3f6f837d5114f3cdf5 Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Sun, 2 Mar 2014 22:51:31 -0500 Subject: [PATCH] Mac: Don't lose the menu/dock when switching back to a resizable window Space. --- src/video/cocoa/SDL_cocoawindow.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/video/cocoa/SDL_cocoawindow.m b/src/video/cocoa/SDL_cocoawindow.m index 0fe8ceefc..06ecd62e7 100644 --- a/src/video/cocoa/SDL_cocoawindow.m +++ b/src/video/cocoa/SDL_cocoawindow.m @@ -509,7 +509,7 @@ SetWindowStyle(SDL_Window * window, unsigned int style) /* Check to see if someone updated the clipboard */ Cocoa_CheckClipboardUpdate(_data->videodata); - if (isFullscreenSpace) { + if ((isFullscreenSpace) && ((window->flags & SDL_WINDOW_FULLSCREEN_DESKTOP) == SDL_WINDOW_FULLSCREEN_DESKTOP)) { [NSMenu setMenuBarVisible:NO]; } }