summaryrefslogtreecommitdiffstats
path: root/video/out/wayland_common.h
diff options
context:
space:
mode:
authorDudemanguy <random342@airmail.cc>2023-08-26 16:39:09 -0500
committerDudemanguy <random342@airmail.cc>2023-11-10 22:41:35 +0000
commit9c8b8ac9d9f1e458f774390d6a4a22cd7654f525 (patch)
tree04bbaeba0c5627b4fa24fa194f56215de62a465f /video/out/wayland_common.h
parentfc4db187d0ac538cb5cd9fcd7120f4ee25df4690 (diff)
downloadmpv-9c8b8ac9d9f1e458f774390d6a4a22cd7654f525.tar.bz2
mpv-9c8b8ac9d9f1e458f774390d6a4a22cd7654f525.tar.xz
wayland: obey initial size hints set by the compositor
In the past, this worked by accident because the initial startup was racy and sometimes the initial firing of handle_toplevel_config would happen after reconfig. Since we now properly wait on all compositor events we can save the initial size hint that is given to us and try to use that as the window-size/geometry provided the --autofit/geometry options aren't explictly set. Fixes #11134.
Diffstat (limited to 'video/out/wayland_common.h')
-rw-r--r--video/out/wayland_common.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/video/out/wayland_common.h b/video/out/wayland_common.h
index 060583278e..adbcca63b2 100644
--- a/video/out/wayland_common.h
+++ b/video/out/wayland_common.h
@@ -69,10 +69,12 @@ struct vo_wayland_state {
/* State */
bool activated;
- bool has_keyboard_input;
+ bool configured;
bool focused;
bool frame_wait;
+ bool has_keyboard_input;
bool hidden;
+ bool initial_size_hint;
bool locked_size;
bool state_change;
bool tiled;