diff --git a/DOCS/man/options.rst b/DOCS/man/options.rst index b1d70ed861218..1611142110313 100644 --- a/DOCS/man/options.rst +++ b/DOCS/man/options.rst @@ -3569,7 +3569,7 @@ Window ``--force-window-position`` Forcefully move mpv's video output window to default location whenever there is a change in video parameters, video stream or file. This used to - be the default behavior. Currently only affects X11 and SDL VOs. + be the default behavior. Currently only affects X11, macvk and SDL VOs. ``--auto-window-resize=`` By default, mpv will automatically resize itself if the video's size changes diff --git a/video/out/mac_common.swift b/video/out/mac_common.swift index 540f4702ef815..de041269934e0 100644 --- a/video/out/mac_common.swift +++ b/video/out/mac_common.swift @@ -47,8 +47,7 @@ class MacCommon: Common { let previousActiveApp = getActiveApp() initApp() - let (_, wr, _) = getInitProperties(vo) - + let (_, wr, forcePosition) = getInitProperties(vo) guard let layer = self.layer else { log.error("Something went wrong, no MetalLayer was initialized") exit(1) @@ -60,7 +59,9 @@ class MacCommon: Common { initWindowState() } - if option.vo.auto_window_resize { + if forcePosition { + window?.updateFrame(wr) + } else if option.vo.auto_window_resize { window?.updateSize(wr.size) }