diff options
| -rw-r--r-- | wayland.c | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -411,6 +411,9 @@ xdg_toplevel_configure(void *data, struct xdg_toplevel *xdg_toplevel, { LOG_DBG("xdg-toplevel: configure: %dx%d", width, height); + if (width == 0 && height == 0) + return; + struct wayland *wayl = data; struct terminal *term = wayl_terminal_from_xdg_toplevel(wayl, xdg_toplevel); @@ -423,9 +426,7 @@ xdg_toplevel_configure(void *data, struct xdg_toplevel *xdg_toplevel, } term->visual_focus = is_focused; - - if (width >= 0 && height >= 0) - render_resize(term, width, height); + render_resize(term, width, height); } static void |
