Skip to content

Commit

Permalink
Mac: Don't lose the menu/dock when switching back to a resizable wind…
Browse files Browse the repository at this point in the history
…ow Space.
  • Loading branch information
icculus committed Mar 3, 2014
1 parent 86be832 commit 0e5cc8d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/video/cocoa/SDL_cocoawindow.m
Expand Up @@ -509,7 +509,7 @@ - (void)windowDidBecomeKey:(NSNotification *)aNotification
/* 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];
}
}
Expand Down

0 comments on commit 0e5cc8d

Please sign in to comment.