cocoa_common: fix ontop switching when fullscreen

`enterFullScreenMode:withOptions:` creates another window so set the level on
both the windowed window and current window.

Also remove NSFullScreenModeWindowLevel as it seems to be superfluous.
This commit is contained in:
Stefano Pigozzi 2013-06-11 21:20:46 +02:00
parent d2d9ba326a
commit 4ffaf4868e
1 changed files with 2 additions and 2 deletions

View File

@ -266,6 +266,7 @@ static void vo_set_level(struct vo *vo, int ontop)
s->window_level = NSNormalWindowLevel;
}
[[s->view window] setLevel:s->window_level];
[s->window setLevel:s->window_level];
}
@ -635,7 +636,6 @@ int vo_cocoa_cgl_color_size(struct vo *vo)
popts |= NSApplicationPresentationAutoHideDock;
NSDictionary *fsopts = @{
NSFullScreenModeWindowLevel : @(s->window_level),
NSFullScreenModeAllScreens : @NO,
NSFullScreenModeApplicationPresentationOptions : @(popts)
};