diff options
author | Dudemanguy <random342@airmail.cc> | 2021-10-19 21:47:23 -0500 |
---|---|---|
committer | Dudemanguy <random342@airmail.cc> | 2023-03-02 02:55:36 +0000 |
commit | c993d5c0ce79ab560e86da8d6d5fe25da35b4c78 (patch) | |
tree | f6833a88bf313984df738d1cecca875455aa2370 /video/out/x11_common.h | |
parent | cd02b5ccf6426645796b18c0692a5c4ca1f83174 (diff) | |
download | mpv-c993d5c0ce79ab560e86da8d6d5fe25da35b4c78.tar.bz2 mpv-c993d5c0ce79ab560e86da8d6d5fe25da35b4c78.tar.xz |
player: add --auto-window-resize option
mpv's window resizing logic always automatically resized the window
whenever the video resolution changed (i.e. advancing forward in a
playlist). This simply introduces the option to make this behavior
configurable. Every windowing backend would need to implement this
behavior in their code since a reconfigure event must always be a
resize. The params of the frame changed so you either have to resize the
window to the new size of the params or make the params the same size as
the window. This commit implements it for wayland, win32, and x11.
Diffstat (limited to 'video/out/x11_common.h')
-rw-r--r-- | video/out/x11_common.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/video/out/x11_common.h b/video/out/x11_common.h index 48516a77ad..de17113c55 100644 --- a/video/out/x11_common.h +++ b/video/out/x11_common.h @@ -118,9 +118,8 @@ struct vo_x11_state { bool size_changed_during_fs; bool pos_changed_during_fs; - /* The geometry/autofit option was changed while the window was maximized. - * Wait until the state changes to resize. */ - bool pending_geometry_change; + /* One of the autofit/geometry options changed at runtime. */ + bool geometry_change; XComposeStatus compose_status; |