mirror of https://github.com/encounter/SDL.git
Mac: Manage menubar and dock as FULLSCREEN_DESKTOP windows become/resign key.
This commit is contained in:
parent
4ca76b3e59
commit
5eccbac4b9
|
@ -508,6 +508,10 @@ 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) {
|
||||||
|
[NSMenu setMenuBarVisible:NO];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void)windowDidResignKey:(NSNotification *)aNotification
|
- (void)windowDidResignKey:(NSNotification *)aNotification
|
||||||
|
@ -526,6 +530,10 @@ SetWindowStyle(SDL_Window * window, unsigned int style)
|
||||||
if (SDL_GetKeyboardFocus() == _data->window) {
|
if (SDL_GetKeyboardFocus() == _data->window) {
|
||||||
SDL_SetKeyboardFocus(NULL);
|
SDL_SetKeyboardFocus(NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (isFullscreenSpace) {
|
||||||
|
[NSMenu setMenuBarVisible:YES];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void)windowWillEnterFullScreen:(NSNotification *)aNotification
|
- (void)windowWillEnterFullScreen:(NSNotification *)aNotification
|
||||||
|
|
Loading…
Reference in New Issue