mpv/DOCS/interface-changes
Dudemanguy e01eab4385 win_state: move window centering to vo_calc_window_geometry
c4e8c36071 made any usage of --geometry
implicitly center the window on the screen after a resize even if the
user did not pass any x/y arguments to the option. At the time, this was
probably wanted since --geometry was primarily a startup option and
likely the window wouldn't be centered on x11 without moving
coordinates. Times have changed since then and we support full runtime
--geometry changes on all the relevant platforms but it comes with this
automatic window centering behavior (except on wayland of course hah).

It's better to make such window centering optional and user controllable
since it is entirely reasonable that someone wants --geometry=50% to
just resize and not move anything. It's already trivial for a person
that does want to move the window to just add their coordinates to the
--geometry command so there's no reason to continue to force this
behavior since it is less flexible.

Instead, move the window centering stuff out of m_geometry_apply into
vo_calc_window_geometry. We give the power to the caller to whether or
not to force centering the window here and all usage of the function is
updated to simply call it with false for now. Additionally,
--force-window-position being set will also center the window like
before. All that is left is for the windowing code to take advantage of
this. See subsequent commits.
2024-10-05 18:40:11 +00:00
..
display-page-toggle.txt stats.lua: allow keybindings to toggle the display of a specific page 2024-10-04 21:13:29 +03:00
example.txt
geometry-behavior.txt win_state: move window centering to vo_calc_window_geometry 2024-10-05 18:40:11 +00:00
nvidia-true-hdr.txt vf_d3d11vpp: add NVIDIA RTX Video HDR support 2024-09-30 02:51:21 +02:00
video-frame-info-timecode.txt command: add video-frame-info/{gop,smpte,estimated-smpte}-timecode 2024-09-24 19:47:42 +02:00