mirror of https://github.com/mpv-player/mpv
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:
parent
4fef2097ce
commit
2f26f0b052
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue