mpv/options
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
..
m_config.h options/m_config: fix no newline at end of file 2024-03-19 08:58:18 +01:00
m_config_core.c m_option: add a way for aliases to use sub option prefix 2024-06-24 12:51:28 +00:00
m_config_core.h m_option: add a way for aliases to use sub option prefix 2024-06-24 12:51:28 +00:00
m_config_frontend.c various: remove global.h inclusion where not needed 2024-10-01 12:23:44 +02:00
m_config_frontend.h various: remove global.h inclusion where not needed 2024-10-01 12:23:44 +02:00
m_option.c win_state: move window centering to vo_calc_window_geometry 2024-10-05 18:40:11 +00:00
m_option.h options: enable handling --no-hwdec as --hwdec=no 2024-09-30 11:26:13 +02:00
m_property.c m_property: add `>` for fixed precision floating-point expansion 2024-03-21 03:50:11 +01:00
m_property.h m_property: add `>` for fixed precision floating-point expansion 2024-03-21 03:50:11 +01:00
options.c options: force --ab-loop-count and --loop-file notification 2024-09-26 22:48:52 +02:00
options.h sub: add ass-video-aspect-override option 2024-09-13 23:24:08 +02:00
parse_commandline.c various: remove global.h inclusion where not needed 2024-10-01 12:23:44 +02:00
parse_commandline.h player: get rid of mpv_global.opts 2018-05-24 19:56:35 +02:00
parse_configfile.c {options,player}: fix stream leaks 2024-05-15 22:45:18 +02:00
parse_configfile.h options: read config file as stream 2023-04-29 22:34:54 +00:00
path.c various: move unistd.h inclusion to common.h 2024-05-06 22:01:17 +02:00
path.h options/path: move path utility functions to misc/path_utils 2024-02-23 21:35:57 +01:00