diff options
author | Dudemanguy <random342@airmail.cc> | 2020-12-13 17:44:36 -0600 |
---|---|---|
committer | Dudemanguy <random342@airmail.cc> | 2020-12-14 22:44:05 +0000 |
commit | 8e793bde78f00fbb64223db30851c6d080c4abeb (patch) | |
tree | cb7761ab42885c5dc09e84e4ada26490720e5028 /video/out/x11_common.h | |
parent | 04018c306196888861775b248a8596ae494f122b (diff) | |
download | mpv-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.h | 4 |
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 */ |