mirror of
https://github.com/mpv-player/mpv
synced 2025-02-17 21:27:08 +00: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:
parent
ec9083d0d8
commit
162044ade9
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user