diff --git a/DOCS/man/options.rst b/DOCS/man/options.rst index 61d251a067..23c4884607 100644 --- a/DOCS/man/options.rst +++ b/DOCS/man/options.rst @@ -3400,7 +3400,6 @@ Window be the default behavior. Currently only affects X11 and SDL VOs. ``--auto-window-resize=`` - (Wayland, Win32, and X11) By default, mpv will automatically resize itself if the video's size changes (i.e. advancing forward in a playlist). Setting this to ``no`` disables this behavior so the window size never changes automatically. This option does diff --git a/video/out/cocoa_cb_common.swift b/video/out/cocoa_cb_common.swift index 9c0054a9d7..4655cabf9b 100644 --- a/video/out/cocoa_cb_common.swift +++ b/video/out/cocoa_cb_common.swift @@ -64,7 +64,7 @@ class CocoaCB: Common { mpv?.vo = vo if backendState == .needsInit { DispatchQueue.main.sync { self.initBackend(vo) } - } else { + } else if mpv?.opts.auto_window_resize ?? true { DispatchQueue.main.async { self.updateWindowSize(vo) self.layer?.update(force: true) diff --git a/video/out/mac_common.swift b/video/out/mac_common.swift index 349712bf39..dd8d80ceea 100644 --- a/video/out/mac_common.swift +++ b/video/out/mac_common.swift @@ -58,7 +58,9 @@ class MacCommon: Common { initWindowState() } - if !NSEqualSizes(window?.unfsContentFramePixel.size ?? NSZeroSize, wr.size) { + if !NSEqualSizes(window?.unfsContentFramePixel.size ?? NSZeroSize, wr.size) && + mpv?.opts.auto_window_resize ?? true + { window?.updateSize(wr.size) }