diff options
author | der richter <der.richter@gmx.de> | 2023-12-24 16:00:35 +0100 |
---|---|---|
committer | der richter <der.richter@gmx.de> | 2023-12-25 13:59:48 +0100 |
commit | 4d7763e6a65a2020aba505e378e83f49648bfa24 (patch) | |
tree | 8b02a750555d1506c5985a112d87cc6ae63c239c /video/out/mac/common.swift | |
parent | dde277665514c2f97e824d08f901a84a3e590915 (diff) | |
download | mpv-4d7763e6a65a2020aba505e378e83f49648bfa24.tar.bz2 mpv-4d7763e6a65a2020aba505e378e83f49648bfa24.tar.xz |
mac: add support for --input-cursor-passthrough option
Diffstat (limited to 'video/out/mac/common.swift')
-rw-r--r-- | video/out/mac/common.swift | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/video/out/mac/common.swift b/video/out/mac/common.swift index 83cac04e8e..cdf0578fab 100644 --- a/video/out/mac/common.swift +++ b/video/out/mac/common.swift @@ -553,6 +553,10 @@ class Common: NSObject { DispatchQueue.main.async { self.window?.setMaximized(Bool(mpv.opts.window_maximized)) } + case MPVHelper.getPointer(&mpv.optsPtr.pointee.cursor_passthrough): + DispatchQueue.main.async { + self.window?.ignoresMouseEvents = mpv.opts.cursor_passthrough + } case MPVHelper.getPointer(&mpv.optsPtr.pointee.geometry): fallthrough case MPVHelper.getPointer(&mpv.optsPtr.pointee.autofit): fallthrough case MPVHelper.getPointer(&mpv.optsPtr.pointee.autofit_smaller): fallthrough |