summaryrefslogtreecommitdiffstats
path: root/video/out/mac/common.swift
diff options
context:
space:
mode:
Diffstat (limited to 'video/out/mac/common.swift')
-rw-r--r--video/out/mac/common.swift3
1 files changed, 2 insertions, 1 deletions
diff --git a/video/out/mac/common.swift b/video/out/mac/common.swift
index 49e3835e10..c5b99bc0fd 100644
--- a/video/out/mac/common.swift
+++ b/video/out/mac/common.swift
@@ -453,7 +453,8 @@ class Common: NSObject {
self.window?.toggleFullScreen(nil)
}
}
- if opt == UnsafeMutableRawPointer(&mpv.optsPtr.pointee.ontop) {
+ if opt == UnsafeMutableRawPointer(&mpv.optsPtr.pointee.ontop) ||
+ opt == UnsafeMutableRawPointer(&mpv.optsPtr.pointee.ontop_level) {
DispatchQueue.main.async {
self.window?.setOnTop(Bool(mpv.opts.ontop), Int(mpv.opts.ontop_level))
}