aboutsummaryrefslogtreecommitdiff
path: root/wayland.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2020-01-03 11:54:03 +0000
committerDaniel Eklöf <daniel@ekloef.se>2020-01-03 11:54:03 +0000
commit74aa6049042750a76602a930be59b1aad88276f2 (patch)
tree08b8bd83661ea5e29822be96870b63804d381647 /wayland.c
parentwayland: fix release build (diff)
render: render_resize(): don't do anything if width or height is 0
Diffstat (limited to 'wayland.c')
-rw-r--r--wayland.c3
1 files changed, 1 insertions, 2 deletions
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