Fixed bug [#22757] : hide dock and menu on OSX only when Blender window is maximized to fullscreen on the primary monitor
This commit is contained in:
@@ -732,7 +732,7 @@ GHOST_TSuccess GHOST_WindowCocoa::setState(GHOST_TWindowState state)
|
||||
#ifdef MAC_OS_X_VERSION_10_6
|
||||
//10.6 provides Cocoa functions to autoshow menu bar, and to change a window style
|
||||
//Hide menu & dock if needed
|
||||
if ([[m_window screen] isEqual:[NSScreen mainScreen]])
|
||||
if ([[m_window screen] isEqual:[[NSScreen screens] objectAtIndex:0]])
|
||||
{
|
||||
[NSApp setPresentationOptions:(NSApplicationPresentationHideDock | NSApplicationPresentationAutoHideMenuBar)];
|
||||
}
|
||||
@@ -743,7 +743,7 @@ GHOST_TSuccess GHOST_WindowCocoa::setState(GHOST_TWindowState state)
|
||||
#else
|
||||
//With 10.5, we need to create a new window to change its style to borderless
|
||||
//Hide menu & dock if needed
|
||||
if ([[m_window screen] isEqual:[NSScreen mainScreen]])
|
||||
if ([[m_window screen] isEqual:[[NSScreen screens] objectAtIndex:0]])
|
||||
{
|
||||
//Cocoa function in 10.5 does not allow to set the menu bar in auto-show mode [NSMenu setMenuBarVisible:NO];
|
||||
//One of the very few 64bit compatible Carbon function
|
||||
|
Reference in New Issue
Block a user