Fix: [OSX] Hide dock when entering fullscreen

This commit is contained in:
Owen Rudge 2021-03-01 20:25:08 +00:00
parent 02e7bc7e0a
commit 838fd61f29
1 changed files with 4 additions and 0 deletions

View File

@ -196,6 +196,10 @@ bool VideoDriver_Cocoa::ToggleFullscreen(bool full_screen)
if ([ this->window respondsToSelector:@selector(toggleFullScreen:) ]) {
[ this->window performSelector:@selector(toggleFullScreen:) withObject:this->window ];
/* Hide the menu bar and the dock */
[ NSMenu setMenuBarVisible:!full_screen ];
this->UpdateVideoModes();
return true;
}