Change: [OSX] Hide Dock and menu during fullscreen mode.

This commit is contained in:
Michael Lutz
2021-01-03 15:13:28 +01:00
parent 784a4ef9b5
commit c860a247d3
4 changed files with 20 additions and 8 deletions

View File

@@ -860,5 +860,11 @@ static const char *Utf8AdvanceByUtf16Units(const char *str, NSUInteger count)
if (!driver->setup) driver->WindowResized();
}
/** Presentation options to use for fullsreen mode. */
- (NSApplicationPresentationOptions)window:(NSWindow *)window willUseFullScreenPresentationOptions:(NSApplicationPresentationOptions)proposedOptions
{
return NSApplicationPresentationFullScreen | NSApplicationPresentationHideMenuBar | NSApplicationPresentationHideDock;
}
@end
#endif /* WITH_COCOA */