forked from bartvdbraak/blender
Bug fix 34743
Mac OS X full screen: the old option to go full screen now didn't hide the dock/topbar anymore. Also made it use dock auto-hide now, not permanent hide.
This commit is contained in:
parent
5a87e4d255
commit
c79b923c1d
@ -624,8 +624,9 @@ GHOST_WindowCocoa::GHOST_WindowCocoa(
|
||||
NSStringPboardType, NSTIFFPboardType, nil]];
|
||||
|
||||
#if MAC_OS_X_VERSION_MIN_REQUIRED >= 1060
|
||||
[NSApp setPresentationOptions:(NSApplicationPresentationFullScreen)];
|
||||
[m_window setCollectionBehavior:NSWindowCollectionBehaviorFullScreenPrimary];
|
||||
if (state != GHOST_kWindowStateFullScreen) {
|
||||
[m_window setCollectionBehavior:NSWindowCollectionBehaviorFullScreenPrimary];
|
||||
}
|
||||
#endif
|
||||
|
||||
if (state == GHOST_kWindowStateFullScreen)
|
||||
@ -969,9 +970,9 @@ GHOST_TSuccess GHOST_WindowCocoa::setState(GHOST_TWindowState state)
|
||||
|
||||
#if MAC_OS_X_VERSION_MIN_REQUIRED >= 1060
|
||||
//10.6 provides Cocoa functions to autoshow menu bar, and to change a window style
|
||||
//Hide menu & dock if needed
|
||||
//Hide menu & dock if on primary screen. else only menu
|
||||
if ([[m_window screen] isEqual:[[NSScreen screens] objectAtIndex:0]]) {
|
||||
[NSApp setPresentationOptions:(NSApplicationPresentationHideDock | NSApplicationPresentationAutoHideMenuBar)];
|
||||
[NSApp setPresentationOptions:(NSApplicationPresentationAutoHideDock | NSApplicationPresentationAutoHideMenuBar)];
|
||||
}
|
||||
//Make window borderless and enlarge it
|
||||
[m_window setStyleMask:NSBorderlessWindowMask];
|
||||
|
Loading…
Reference in New Issue
Block a user