summaryrefslogtreecommitdiffstats
path: root/video/out/wayland_common.h
diff options
context:
space:
mode:
authorDudemanguy <random342@airmail.cc>2023-07-17 13:59:51 -0500
committerDudemanguy <random342@airmail.cc>2023-07-19 01:14:32 +0000
commit949e1f0dcc9d4fc9b15212dea981e00248c562f1 (patch)
tree201815e78cd9bbcc47b9c44190499947ac890214 /video/out/wayland_common.h
parentdbbcd9ec9c6f65fc911161919dd01b2117e3ac71 (diff)
downloadmpv-949e1f0dcc9d4fc9b15212dea981e00248c562f1.tar.bz2
mpv-949e1f0dcc9d4fc9b15212dea981e00248c562f1.tar.xz
wayland: add locked_size convenience shorthand
There's a lot of checks that are along the lines of !maximized && !minimized or vice versa. Make a locked_size boolean and store the value of this in here to avoid writing long lines since the next commit will add yet another condition to this.
Diffstat (limited to 'video/out/wayland_common.h')
-rw-r--r--video/out/wayland_common.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/video/out/wayland_common.h b/video/out/wayland_common.h
index d4e224fe84..2c554d4728 100644
--- a/video/out/wayland_common.h
+++ b/video/out/wayland_common.h
@@ -74,6 +74,7 @@ struct vo_wayland_state {
bool focused;
bool frame_wait;
bool hidden;
+ bool locked_size;
bool state_change;
bool toplevel_configured;
int display_fd;