mirror of https://github.com/mpv-player/mpv
cocoa_common: improve conditional dock hiding from 3259e4a7a
Make the conditional hiding logic introduced in commit 3259e4a7a2a938 ("cocoa_common: make fullscreen menubar/dock hiding conditional") work when mplayer is started with the `fs` and `xineramascreen` options.
This commit is contained in:
parent
3972642cb8
commit
da374c40de
|
@ -666,6 +666,7 @@ void create_menu()
|
|||
if (vo_fs) {
|
||||
[s->window makeKeyAndOrderFront:s->window];
|
||||
[s->window setLevel:s->fullscreen_window_level];
|
||||
if (current_screen_has_dock_or_menubar())
|
||||
[NSApp setPresentationOptions:NSApplicationPresentationHideDock|
|
||||
NSApplicationPresentationHideMenuBar];
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue