From 8d5f800567d81665820d308b7f2d482c18c51e15 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Sat, 12 Oct 2013 20:57:28 +0200 Subject: cocoa: make --ontop also cover dock+menubar This only shows any differences when mpv isn't frontmost and is in fullscreen. Cmd+Tab overlay is still at a higher level as to avoid complete usability fail. --- video/out/cocoa_common.m | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/video/out/cocoa_common.m b/video/out/cocoa_common.m index 9f03cd8d48..1c5c3a5e25 100644 --- a/video/out/cocoa_common.m +++ b/video/out/cocoa_common.m @@ -235,7 +235,9 @@ static void vo_set_level(struct vo *vo, int ontop) { struct vo_cocoa_state *s = vo->cocoa; if (ontop) { - s->window_level = NSNormalWindowLevel + 1; + // +1 is not enough as that will show the icon layer on top of the + // menubar when the application is not frontmost. so use +2 + s->window_level = NSMainMenuWindowLevel + 2; } else { s->window_level = NSNormalWindowLevel; } -- cgit v1.2.3