render: render_resize(): don't do anything if width or height is 0

This commit is contained in:
Daniel Eklöf 2020-01-03 12:54:03 +01:00
parent 11892e8d23
commit 74aa604904
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
2 changed files with 4 additions and 2 deletions

View file

@ -475,8 +475,7 @@ xdg_toplevel_configure(void *data, struct xdg_toplevel *xdg_toplevel,
else
term_visual_focus_out(term);
if (width > 0 && height > 0)
render_resize(term, width, height, false);
render_resize(term, width, height, false);
}
static void