summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefano Pigozzi <stefano.pigozzi@gmail.com>2013-08-25 23:26:01 +0200
committerStefano Pigozzi <stefano.pigozzi@gmail.com>2013-08-26 20:01:20 +0200
commitd3c4ba3ab824f4625c41270744249f50dba55acb (patch)
treee96a36ca9b4f6520e8687efc236466e1f12ca5ce
parent75791f4dd98d15a074f59a567e53d31ef486bdd5 (diff)
downloadmpv-d3c4ba3ab824f4625c41270744249f50dba55acb.tar.bz2
mpv-d3c4ba3ab824f4625c41270744249f50dba55acb.tar.xz
cocoa_common: autohide dock when autohiding menubar
A cocoa bug doesn't allow to do otherwise. Will open a radar later.
-rw-r--r--video/out/cocoa_common.m6
1 files changed, 5 insertions, 1 deletions
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;