mpv icon indicating copy to clipboard operation
mpv copied to clipboard

--geometry does not work in Windows 10

Open hkenneth opened this issue 11 years ago • 5 comments

The --geometry option does not work properly in Windows 10 anymore. Setting geometry = 50%:50% but the window is not centered in the screen (single monitor).

There was no such issue in the official 2015-09-03 build but appears in the 2015-09-23 build.

hkenneth avatar Oct 13 '15 01:10 hkenneth

Well, what is the window positioned like then?

ghost avatar Oct 13 '15 08:10 ghost

It looks like mpv centers itself before re-sizing its window. No matter which resolution the opened video has, the left and upper boundaries of the window are always positioned at the same initial place while depending on the resolution, bottom and right boundaries may move out of the screen.

The 2015-09-03 build does not have this issue using the same configuration.

zhen-huan-hu avatar Oct 15 '15 15:10 zhen-huan-hu

Geometry has never centered itself for me. But you can add the position after the size.

Autofit centers itself but the size isnt exact.

ponyo avatar Oct 17 '15 22:10 ponyo

It's quite similar to what acc5e8f caused in linux before being reverted (maybe returned in some stupid fashion? to ck. > in mpv.conf (for vid started via context menu or file association [pseudo-gui] force-window=no

mc4man avatar Oct 23 '15 04:10 mc4man

From a proactive side (as seen in linux) the misplacement seems to come from what is achieved with the force-window=immediate option, ie. upper l. corner remains the same from dummy to actual vid window.

mc4man avatar Oct 23 '15 05:10 mc4man