mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-05 04:06:08 -05:00
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:
parent
7db9221aa9
commit
a4d77608b9
1 changed files with 7 additions and 0 deletions
|
|
@ -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 = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue