0
0
mirror of https://github.com/mpv-player/mpv.git synced 2024-09-20 03:52:22 +02:00

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.
This commit is contained in:
Dudemanguy 2021-08-09 15:07:58 -05:00
parent ec9083d0d8
commit 162044ade9

View File

@ -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)