mpv/DOCS
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
..
interface-changes win_state: move window centering to vo_calc_window_geometry 2024-10-05 18:40:11 +00:00
man stats.lua: allow keybindings to toggle the display of a specific page 2024-10-04 21:13:29 +03:00
client-api-changes.rst vo_libmpv: don't steal pointer provided by the API user 2024-08-06 20:17:35 +02:00
compatibility.rst DOCS/compatibility.rst: add requirement when changing default values 2024-05-20 18:07:38 +02:00
compile-windows.md DOCS/compile-windows.md: fix MSYS2 packages 2024-07-29 20:59:22 +02:00
contribute.md DOCS/contribute.md: require interface change begin with type 2024-06-08 23:08:43 +02:00
edl-mpv.rst
encoding.rst DOCS/encoding: remove the legacy option syntax 2022-07-07 21:12:57 -04:00
interface-changes.rst Release 0.39.0 2024-09-23 19:36:41 +02:00
mplayer-changes.rst DOCS: make mentions of macOS consistent 2024-02-21 20:46:53 +01:00
release-policy.md VERSION: rename to MPV_VERSION to avoid standard library header conflict 2024-07-29 21:38:19 +02:00
tech-overview.txt DOCS/tech-overview.txt: add builtin.conf to etc/ description 2024-03-11 21:01:01 +01:00