occivink / mpv-image-viewer

Configuration, scripts and tips for using mpv as an image viewer
The Unlicense
284 stars 23 forks source link

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

Closed hakonrk closed 3 months ago

hakonrk commented 4 months ago

System info:

Steps to reproduce:

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

occivink commented 4 months ago

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

hakonrk commented 4 months ago

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