cocoa_common: autohide dock when autohiding menubar

A cocoa bug doesn't allow to do otherwise. Will open a radar later.
This commit is contained in:
Stefano Pigozzi 2013-08-25 23:26:01 +02:00 committed by wm4
parent 4fef2097ce
commit 2f26f0b052
1 changed files with 5 additions and 1 deletions

View File

@ -657,7 +657,11 @@ int vo_cocoa_cgl_color_size(struct vo *vo)
NSApplicationPresentationDefault; NSApplicationPresentationDefault;
if ([s->fs_screen hasMenubar]) 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]) if ([s->fs_screen hasDock])
popts |= NSApplicationPresentationAutoHideDock; popts |= NSApplicationPresentationAutoHideDock;