diff options
author | Stefano Pigozzi <stefano.pigozzi@gmail.com> | 2013-08-25 23:26:01 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2013-08-29 19:20:08 +0200 |
commit | 2f26f0b052a3b94b0b2abfbea81f029e4e6e9516 (patch) | |
tree | 100b1ff3ed36eb65561efea16489f212b5859158 /video/out | |
parent | 4fef2097ce608dd8a2f0a2a8e925ff423a17f941 (diff) | |
download | mpv-2f26f0b052a3b94b0b2abfbea81f029e4e6e9516.tar.bz2 mpv-2f26f0b052a3b94b0b2abfbea81f029e4e6e9516.tar.xz |
cocoa_common: autohide dock when autohiding menubar
A cocoa bug doesn't allow to do otherwise. Will open a radar later.
Diffstat (limited to 'video/out')
-rw-r--r-- | video/out/cocoa_common.m | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/video/out/cocoa_common.m b/video/out/cocoa_common.m index 0a1ae175b1..13e12863b0 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; |