mpv-image-viewer icon indicating copy to clipboard operation
mpv-image-viewer copied to clipboard

The mpv window repositions to center when resizing (since mpv 0.38.0)

Open hakonrk opened this issue 1 year ago • 2 comments

System info:

  • mpv version: 0.38.0
  • OS: Windows 11 version 23H2 (OS Build 22631.3447)
  • Source of the mpv binary: mpv-0.38.0-x86_64.7z (downloaded from the official mpv github repo)
  • mpv-image-viewer version: master (efc82147cba4809f22e9afae6ed7a41ad9794ffd)

Steps to reproduce:

  • Open mpv.exe
  • Resize the mpv application window

Expected behavior:

The mpv window should resize like any other application.

Actual behavior:

The mpv window moves itself to the center when its size changes. See the attached video recording, which compares the resizing behavior with mpv 0.37.0 and mpv 0.38.0. If I disable mpv-image-viewer, both versions of mpv resize normally.

https://github.com/occivink/mpv-image-viewer/assets/24655611/3fcb5d4e-6ee1-447a-8667-07da1a72d229

hakonrk avatar Apr 30 '24 12:04 hakonrk

I think this is something the freeze-window script is doing, try getting rid of it entirely. It's anyway superseded by the (somewhat recently added) option auto-window-resize

occivink avatar May 05 '24 15:05 occivink

Thanks, removing freeze-window.lua did fix the problem.

hakonrk avatar May 15 '24 22:05 hakonrk