summaryrefslogtreecommitdiffstats
path: root/video
diff options
context:
space:
mode:
Diffstat (limited to 'video')
-rw-r--r--video/out/cocoa_common.m6
1 files changed, 4 insertions, 2 deletions
diff --git a/video/out/cocoa_common.m b/video/out/cocoa_common.m
index 2d4a4c517c..7eeb7163a1 100644
--- a/video/out/cocoa_common.m
+++ b/video/out/cocoa_common.m
@@ -478,8 +478,10 @@ 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];
+ [s->window setLevel:s->window_level];
+ NSWindowCollectionBehavior behavior = [s->window collectionBehavior] &
+ ~NSWindowCollectionBehaviorTransient;
+ [s->window setCollectionBehavior:behavior|NSWindowCollectionBehaviorManaged];
}
static int vo_cocoa_ontop(struct vo *vo)