summaryrefslogtreecommitdiffstats
diff options
context:
space:
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)