From d3c4ba3ab824f4625c41270744249f50dba55acb Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Sun, 25 Aug 2013 23:26:01 +0200 Subject: cocoa_common: autohide dock when autohiding menubar A cocoa bug doesn't allow to do otherwise. Will open a radar later. --- video/out/cocoa_common.m | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/video/out/cocoa_common.m b/video/out/cocoa_common.m index 6c51584359..8798bbc8b0 100644 --- a/video/out/cocoa_common.m +++ b/video/out/cocoa_common.m @@ -657,7 +657,11 @@ int vo_cocoa_cgl_color_size(struct vo *vo) NSApplicationPresentationDefault; if ([s->fs_screen hasMenubar]) - popts |= NSApplicationPresentationAutoHideMenuBar; + // Cocoa raises an exception when autohiding the menubar but + // not the dock. They probably got bored while programming the + // multi screen support and took some shortcuts (tested on 10.8). + popts |= NSApplicationPresentationAutoHideMenuBar | + NSApplicationPresentationAutoHideDock; if ([s->fs_screen hasDock]) popts |= NSApplicationPresentationAutoHideDock; -- cgit v1.2.3