diff options
author | der richter <der.richter@gmx.de> | 2024-03-10 13:44:40 +0100 |
---|---|---|
committer | der richter <der.richter@gmx.de> | 2024-03-10 14:53:07 +0100 |
commit | 0ec385bc763567cbab4532b3579cd24b07958802 (patch) | |
tree | 3b1f1abe8801d8c9c3a998478d41c5ccbe638eb7 /video/out/mac/common.swift | |
parent | a56d8ff18470e4612cbb23e35e7849b8e522ba7e (diff) | |
download | mpv-0ec385bc763567cbab4532b3579cd24b07958802.tar.bz2 mpv-0ec385bc763567cbab4532b3579cd24b07958802.tar.xz |
options: remove --focus-on-open and add --focus-on
replaces the old focus-on-open option with a more generic focus-on
options that can be extended.
adjust the only platform that uses that option.
Fixes #8337
Diffstat (limited to 'video/out/mac/common.swift')
-rw-r--r-- | video/out/mac/common.swift | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/video/out/mac/common.swift b/video/out/mac/common.swift index 7b6fa48b5d..5790d3b844 100644 --- a/video/out/mac/common.swift +++ b/video/out/mac/common.swift @@ -122,11 +122,11 @@ class Common: NSObject { window.orderFront(nil) } - NSApp.activate(ignoringOtherApps: mpv.opts.focus_on_open) + NSApp.activate(ignoringOtherApps: mpv.opts.focus_on >= 1) // workaround for macOS 10.15 to refocus the previous App - if (!mpv.opts.focus_on_open) { - previousActiveApp?.activate(options: .activateAllWindows) + if mpv.opts.focus_on == 0 { + previousActiveApp?.activate() } } |