wayland: decoration-configure: call render_resize() to add/remove CSDs

Call render_resize_force() when the decoration type changes
run-time. This ensures the CSDs are drawn when changing from server ->
client side decorations, and removed when going the other way.
This commit is contained in:
Daniel Eklöf 2020-02-25 19:16:23 +01:00
parent 7db9221aa9
commit a4d77608b9
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

View file

@ -554,6 +554,13 @@ xdg_toplevel_decoration_configure(void *data,
LOG_ERR("unimplemented: unknown XDG toplevel decoration mode: %u", mode);
break;
}
if (win->is_configured) {
struct terminal *term = win->term;
int scale = term->scale;
render_resize_force(term, term->width / scale, term->height / scale);
}
}
static const struct zxdg_toplevel_decoration_v1_listener xdg_toplevel_decoration_listener = {