summaryrefslogtreecommitdiffstats
path: root/video/out/wayland_common.h
diff options
context:
space:
mode:
authorJan Ekström <jeebjp@gmail.com>2022-10-22 19:00:25 +0300
committerJan Ekström <jeebjp@gmail.com>2022-10-26 22:20:31 +0300
commite0c4193ee5c0ccc9811947f881c3e647544f81df (patch)
tree17db67894570c063d284f43fe650203a232cc322 /video/out/wayland_common.h
parentf39e56bf5e482b98688909161bc5be0bdeaa82ce (diff)
downloadmpv-e0c4193ee5c0ccc9811947f881c3e647544f81df.tar.bz2
mpv-e0c4193ee5c0ccc9811947f881c3e647544f81df.tar.xz
video/out/wayland_common: clear decoration request even if compositor disagrees
Otherwise mpv and the compositor can end up in an eternal loop where mpv requests one mode, and compositor tells that the mode is not that (and will most likely not change). Additionally, log these mismatches - first time as a warning, and later as debug logging.
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 fdb745c5d3..60757fa1ea 100644
--- a/video/out/wayland_common.h
+++ b/video/out/wayland_common.h
@@ -102,6 +102,7 @@ struct vo_wayland_state {
struct zxdg_decoration_manager_v1 *xdg_decoration_manager;
struct zxdg_toplevel_decoration_v1 *xdg_toplevel_decoration;
int requested_decoration;
+ bool warned_of_mismatch;
/* xdg-shell */
struct xdg_wm_base *wm_base;