From 74aa6049042750a76602a930be59b1aad88276f2 Mon Sep 17 00:00:00 2001 From: Daniel Eklöf Date: Fri, 3 Jan 2020 12:54:03 +0100 Subject: render: render_resize(): don't do anything if width or height is 0 --- wayland.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'wayland.c') diff --git a/wayland.c b/wayland.c index 9643cda2..415d8292 100644 --- a/wayland.c +++ b/wayland.c @@ -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 -- cgit v1.3