From 601e502d2e27baca7446587cb5188c965eaf3789 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sat, 22 Jul 2023 11:40:56 +0530 Subject: [PATCH] Only draw resizing text if there has been more than one resize event --- kitty/child-monitor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kitty/child-monitor.c b/kitty/child-monitor.c index 607f6609a..6dcb5b87d 100644 --- a/kitty/child-monitor.c +++ b/kitty/child-monitor.c @@ -735,7 +735,7 @@ prepare_to_render_os_window(OSWindow *os_window, monotonic_t now, unsigned int * static void draw_resizing_text(OSWindow *w) { - if (monotonic() - w->created_at > ms_to_monotonic_t(1000)) { + if (monotonic() - w->created_at > ms_to_monotonic_t(1000) && w->live_resize.num_of_resize_events > 1) { char text[32] = {0}; unsigned int width = w->live_resize.width, height = w->live_resize.height; snprintf(text, sizeof(text), "%u x %u cells", width / w->fonts_data->cell_width, height / w->fonts_data->cell_height);