Skip to content

Commit

Permalink
Mac: Manage menubar and dock as FULLSCREEN_DESKTOP windows become/res…
Browse files Browse the repository at this point in the history
…ign key.
  • Loading branch information
icculus committed Mar 2, 2014
1 parent 4ca76b3 commit 5eccbac
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/video/cocoa/SDL_cocoawindow.m
Expand Up @@ -508,6 +508,10 @@ - (void)windowDidBecomeKey:(NSNotification *)aNotification

/* Check to see if someone updated the clipboard */
Cocoa_CheckClipboardUpdate(_data->videodata);

if (isFullscreenSpace) {
[NSMenu setMenuBarVisible:NO];
}
}

- (void)windowDidResignKey:(NSNotification *)aNotification
Expand All @@ -526,6 +530,10 @@ - (void)windowDidResignKey:(NSNotification *)aNotification
if (SDL_GetKeyboardFocus() == _data->window) {
SDL_SetKeyboardFocus(NULL);
}

if (isFullscreenSpace) {
[NSMenu setMenuBarVisible:YES];
}
}

- (void)windowWillEnterFullScreen:(NSNotification *)aNotification
Expand Down

0 comments on commit 5eccbac

Please sign in to comment.