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:
Stefano Pigozzi 2012-08-17 13:48:37 +02:00 committed by wm4
parent 3972642cb8
commit da374c40de
1 changed files with 3 additions and 2 deletions

View File

@ -666,8 +666,9 @@ void create_menu()
if (vo_fs) {
[s->window makeKeyAndOrderFront:s->window];
[s->window setLevel:s->fullscreen_window_level];
[NSApp setPresentationOptions:NSApplicationPresentationHideDock|
NSApplicationPresentationHideMenuBar];
if (current_screen_has_dock_or_menubar())
[NSApp setPresentationOptions:NSApplicationPresentationHideDock|
NSApplicationPresentationHideMenuBar];
}
}