wayland: decoration configure: no need to force a resize - just update the CSDs

This commit is contained in:
Daniel Eklöf 2020-02-26 12:28:12 +01:00
parent 135ca0884d
commit be5988dd3a
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

View file

@ -618,12 +618,8 @@ xdg_toplevel_decoration_configure(void *data,
break; break;
} }
if (win->is_configured) { if (win->is_configured)
struct terminal *term = win->term; render_csd(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 = { static const struct zxdg_toplevel_decoration_v1_listener xdg_toplevel_decoration_listener = {