mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2025-01-03 09:29:38 +01:00
Disable Dock and Menu in fullscreen mode.
This commit is contained in:
parent
e0d09a2633
commit
24e41be33d
@ -327,6 +327,8 @@ static NSCursor *cursorFromSelector(SEL selector, SEL fallback = nil) {
|
||||
if (OS_OSX::singleton->on_top)
|
||||
[OS_OSX::singleton->window_object setLevel:NSFloatingWindowLevel];
|
||||
|
||||
[NSApp setPresentationOptions:NSApplicationPresentationDefault];
|
||||
|
||||
// Force window resize event.
|
||||
[self windowDidResize:notification];
|
||||
}
|
||||
@ -2831,6 +2833,12 @@ void OS_OSX::set_window_fullscreen(bool p_enabled) {
|
||||
[window_object setContentMaxSize:NSMakeSize(size.x, size.y)];
|
||||
}
|
||||
}
|
||||
if (p_enabled) {
|
||||
const NSUInteger presentationOptions = NSApplicationPresentationHideDock | NSApplicationPresentationHideMenuBar;
|
||||
[NSApp setPresentationOptions:presentationOptions];
|
||||
} else {
|
||||
[NSApp setPresentationOptions:NSApplicationPresentationDefault];
|
||||
}
|
||||
[window_object toggleFullScreen:nil];
|
||||
}
|
||||
zoomed = p_enabled;
|
||||
|
Loading…
Reference in New Issue
Block a user