From 9035a51b133dbf288818a871f040413d80c2d3b0 Mon Sep 17 00:00:00 2001 From: der richter Date: Sun, 26 Jul 2020 13:42:25 +0200 Subject: [PATCH] mac: make ontop level runtime changeable this was requested on an old issue, but the comment has since been deleted. i though it was useful enough to add it. it's also just a one line change. --- video/out/mac/common.swift | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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)) }