aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--wayland.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/wayland.c b/wayland.c
index cc648244..4e8a8ca8 100644
--- a/wayland.c
+++ b/wayland.c
@@ -644,6 +644,8 @@ xdg_surface_configure(void *data, struct xdg_surface *xdg_surface,
struct terminal *term = win->term;
bool wasnt_configured = !win->is_configured;
+ bool was_resizing = win->is_resizing;
+
win->is_configured = true;
win->is_maximized = win->configure.is_maximized;
win->is_resizing = win->configure.is_resizing;
@@ -675,8 +677,9 @@ xdg_surface_configure(void *data, struct xdg_surface *xdg_surface,
term->window->frame_callback = NULL;
}
- bool resized = render_resize(
- term, win->configure.width, win->configure.height);
+ bool resized = was_resizing && !win->is_resizing
+ ? render_resize_force(term, win->configure.width, win->configure.height)
+ : render_resize(term, win->configure.width, win->configure.height);
if (win->configure.is_activated)
term_visual_focus_in(term);