mirror of
https://github.com/mpv-player/mpv
synced 2025-01-24 16:43:28 +00:00
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
75791f4dd9
commit
d3c4ba3ab8
@ -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
Block a user