mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-28 01:40:17 -05:00
fix crashes when resizing after CSD enabled at runtime with csd.size = 0
This commit is contained in:
parent
8e4d020a41
commit
304aacdb7a
2 changed files with 5 additions and 2 deletions
3
render.c
3
render.c
|
|
@ -1673,7 +1673,8 @@ render_csd_title(struct terminal *term, const struct csd_data *info,
|
|||
xassert(term->window->csd_mode == CSD_YES);
|
||||
|
||||
struct wl_surf_subsurf *surf = &term->window->csd.surface[CSD_SURF_TITLE];
|
||||
xassert(info->width > 0 && info->height > 0);
|
||||
if (info->width == 0 || info->height == 0)
|
||||
return;
|
||||
|
||||
xassert(info->width % term->scale == 0);
|
||||
xassert(info->height % term->scale == 0);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue