diff options
author | Dudemanguy <random342@airmail.cc> | 2023-08-26 16:39:09 -0500 |
---|---|---|
committer | Dudemanguy <random342@airmail.cc> | 2023-11-10 22:41:35 +0000 |
commit | 9c8b8ac9d9f1e458f774390d6a4a22cd7654f525 (patch) | |
tree | 04bbaeba0c5627b4fa24fa194f56215de62a465f /video/out/wayland_common.h | |
parent | fc4db187d0ac538cb5cd9fcd7120f4ee25df4690 (diff) | |
download | mpv-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.h | 4 |
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; |