mirror of https://github.com/encounter/SDL.git
Mac: Don't lose the menu/dock when switching back to a resizable window Space.
This commit is contained in:
parent
86be83215a
commit
0e5cc8dff4
|
@ -509,7 +509,7 @@ SetWindowStyle(SDL_Window * window, unsigned int style)
|
|||
/* 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];
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue