mirror of
https://github.com/mpv-player/mpv
synced 2025-04-17 20:58:20 +00:00
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.
This commit is contained in:
parent
fa982a7cbe
commit
9035a51b13
@ -453,7 +453,8 @@ class Common: NSObject {
|
|||||||
self.window?.toggleFullScreen(nil)
|
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 {
|
DispatchQueue.main.async {
|
||||||
self.window?.setOnTop(Bool(mpv.opts.ontop), Int(mpv.opts.ontop_level))
|
self.window?.setOnTop(Bool(mpv.opts.ontop), Int(mpv.opts.ontop_level))
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user