summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDudemanguy <random342@airmail.cc>2021-08-09 15:07:58 -0500
committerDudemanguy <random342@airmail.cc>2021-08-09 15:07:58 -0500
commit162044ade9c65fd915ab1b967de94330487cabb7 (patch)
treeb8e8bb0303f0f27165a6912bbc86982dd473465f
parentec9083d0d8677da928ec29af6f68ec5d25b506ab (diff)
downloadmpv-162044ade9c65fd915ab1b967de94330487cabb7.tar.bz2
mpv-162044ade9c65fd915ab1b967de94330487cabb7.tar.xz
wayland: check for xdg-decoration on border update
Oversight in 69c64f5. If there is no xdg_toplevel_decoration, don't attempt to set the mode.
-rw-r--r--video/out/wayland_common.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/video/out/wayland_common.c b/video/out/wayland_common.c
index 58eedeacdb..8fb43cc10c 100644
--- a/video/out/wayland_common.c
+++ b/video/out/wayland_common.c
@@ -1560,7 +1560,7 @@ int vo_wayland_control(struct vo *vo, int *events, int request, void *arg)
while (m_config_cache_get_next_changed(wl->vo_opts_cache, &opt)) {
if (opt == &opts->appid)
update_app_id(wl);
- if (opt == &opts->border)
+ if (opt == &opts->border && wl->xdg_toplevel_decoration)
// The enum in xdg-decoration starts at 1.
zxdg_toplevel_decoration_v1_set_mode(wl->xdg_toplevel_decoration, opts->border + 1);
if (opt == &opts->fullscreen)