[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [30058] trunk/blender/intern/ghost/intern/ GHOST_WindowCocoa.mm: Fixed bug [#22757] : hide dock and menu on OSX only when Blender window is maximized to fullscreen on the primary monitor
Damien Plisson
damien.plisson at yahoo.fr
Tue Jul 6 21:59:37 CEST 2010
Revision: 30058
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=30058
Author: damien78
Date: 2010-07-06 21:59:37 +0200 (Tue, 06 Jul 2010)
Log Message:
-----------
Fixed bug [#22757] : hide dock and menu on OSX only when Blender window is maximized to fullscreen on the primary monitor
Modified Paths:
--------------
trunk/blender/intern/ghost/intern/GHOST_WindowCocoa.mm
Modified: trunk/blender/intern/ghost/intern/GHOST_WindowCocoa.mm
===================================================================
--- trunk/blender/intern/ghost/intern/GHOST_WindowCocoa.mm 2010-07-06 19:42:06 UTC (rev 30057)
+++ trunk/blender/intern/ghost/intern/GHOST_WindowCocoa.mm 2010-07-06 19:59:37 UTC (rev 30058)
@@ -732,7 +732,7 @@
#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 @@
#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
More information about the Bf-blender-cvs
mailing list