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:
@@ -624,8 +624,9 @@ GHOST_WindowCocoa::GHOST_WindowCocoa(
|
|||||||
NSStringPboardType, NSTIFFPboardType, nil]];
|
NSStringPboardType, NSTIFFPboardType, nil]];
|
||||||
|
|
||||||
#if MAC_OS_X_VERSION_MIN_REQUIRED >= 1060
|
#if MAC_OS_X_VERSION_MIN_REQUIRED >= 1060
|
||||||
[NSApp setPresentationOptions:(NSApplicationPresentationFullScreen)];
|
if (state != GHOST_kWindowStateFullScreen) {
|
||||||
[m_window setCollectionBehavior:NSWindowCollectionBehaviorFullScreenPrimary];
|
[m_window setCollectionBehavior:NSWindowCollectionBehaviorFullScreenPrimary];
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (state == GHOST_kWindowStateFullScreen)
|
if (state == GHOST_kWindowStateFullScreen)
|
||||||
@@ -969,9 +970,9 @@ GHOST_TSuccess GHOST_WindowCocoa::setState(GHOST_TWindowState state)
|
|||||||
|
|
||||||
#if MAC_OS_X_VERSION_MIN_REQUIRED >= 1060
|
#if MAC_OS_X_VERSION_MIN_REQUIRED >= 1060
|
||||||
//10.6 provides Cocoa functions to autoshow menu bar, and to change a window style
|
//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]]) {
|
if ([[m_window screen] isEqual:[[NSScreen screens] objectAtIndex:0]]) {
|
||||||
[NSApp setPresentationOptions:(NSApplicationPresentationHideDock | NSApplicationPresentationAutoHideMenuBar)];
|
[NSApp setPresentationOptions:(NSApplicationPresentationAutoHideDock | NSApplicationPresentationAutoHideMenuBar)];
|
||||||
}
|
}
|
||||||
//Make window borderless and enlarge it
|
//Make window borderless and enlarge it
|
||||||
[m_window setStyleMask:NSBorderlessWindowMask];
|
[m_window setStyleMask:NSBorderlessWindowMask];
|
||||||
|
Reference in New Issue
Block a user