Mac: Don't lose the menu/dock when switching back to a resizable window Space.

main
Ryan C. Gordon 2014-03-02 22:51:31 -05:00
parent 86be83215a
commit 0e5cc8dff4
1 changed files with 1 additions and 1 deletions

View File

@ -509,7 +509,7 @@ SetWindowStyle(SDL_Window * window, unsigned int style)
/* Check to see if someone updated the clipboard */ /* Check to see if someone updated the clipboard */
Cocoa_CheckClipboardUpdate(_data->videodata); Cocoa_CheckClipboardUpdate(_data->videodata);
if (isFullscreenSpace) { if ((isFullscreenSpace) && ((window->flags & SDL_WINDOW_FULLSCREEN_DESKTOP) == SDL_WINDOW_FULLSCREEN_DESKTOP)) {
[NSMenu setMenuBarVisible:NO]; [NSMenu setMenuBarVisible:NO];
} }
} }