From 838fd61f299d4455e9a1fc5be883f4e9f9a40934 Mon Sep 17 00:00:00 2001 From: Owen Rudge Date: Mon, 1 Mar 2021 20:25:08 +0000 Subject: [PATCH] Fix: [OSX] Hide dock when entering fullscreen --- src/video/cocoa/cocoa_v.mm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/video/cocoa/cocoa_v.mm b/src/video/cocoa/cocoa_v.mm index 523a408b1f..af63fe5f4d 100644 --- a/src/video/cocoa/cocoa_v.mm +++ b/src/video/cocoa/cocoa_v.mm @@ -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; }