Mac: Don't lose the menu/dock when switching back to a resizable window Space.
authorRyan C. Gordon <icculus@icculus.org>
Sun, 02 Mar 2014 22:51:31 -0500
changeset 8293b96005b05c90
parent 8292 2b0736ab4d5f
child 8294 7371078ee876
Mac: Don't lose the menu/dock when switching back to a resizable window Space.
src/video/cocoa/SDL_cocoawindow.m
     1.1 --- a/src/video/cocoa/SDL_cocoawindow.m	Sun Mar 02 22:16:49 2014 -0500
     1.2 +++ b/src/video/cocoa/SDL_cocoawindow.m	Sun Mar 02 22:51:31 2014 -0500
     1.3 @@ -509,7 +509,7 @@
     1.4      /* Check to see if someone updated the clipboard */
     1.5      Cocoa_CheckClipboardUpdate(_data->videodata);
     1.6  
     1.7 -    if (isFullscreenSpace) {
     1.8 +    if ((isFullscreenSpace) && ((window->flags & SDL_WINDOW_FULLSCREEN_DESKTOP) == SDL_WINDOW_FULLSCREEN_DESKTOP)) {
     1.9          [NSMenu setMenuBarVisible:NO];
    1.10      }
    1.11  }