summaryrefslogtreecommitdiffstats
path: root/video/out/x11_common.h
diff options
context:
space:
mode:
authorDudemanguy <random342@airmail.cc>2020-12-13 17:44:36 -0600
committerDudemanguy <random342@airmail.cc>2020-12-14 22:44:05 +0000
commit8e793bde78f00fbb64223db30851c6d080c4abeb (patch)
treecb7761ab42885c5dc09e84e4ada26490720e5028 /video/out/x11_common.h
parent04018c306196888861775b248a8596ae494f122b (diff)
downloadmpv-8e793bde78f00fbb64223db30851c6d080c4abeb.tar.bz2
mpv-8e793bde78f00fbb64223db30851c6d080c4abeb.tar.xz
x11: update geometry/autofit opts on runtime
If the window is maximized, we can't change the size immediately. In that case, we set a bool and wait for the state to change before triggering the resize.
Diffstat (limited to 'video/out/x11_common.h')
-rw-r--r--video/out/x11_common.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/video/out/x11_common.h b/video/out/x11_common.h
index 774a76afbe..45c8d04d21 100644
--- a/video/out/x11_common.h
+++ b/video/out/x11_common.h
@@ -111,6 +111,10 @@ 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;
+
XComposeStatus compose_status;
/* XShm stuff */