From c27cf31a7c2d35d49d003963b6f438a4c5a36e1a Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sun, 12 May 2019 15:39:03 +0530 Subject: [PATCH] Only wait 0.2 secs after live resize if the resize strategy is "size" --- 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 f7fbd0a6a..805cdde71 100644 --- a/kitty/child-monitor.c +++ b/kitty/child-monitor.c @@ -835,7 +835,7 @@ process_pending_resizes(double now) { // if more than one resize event has occurred, wait at least 0.2 secs // before repainting, to avoid rapid transitions between the cells banner // and the normal screen - if (w->live_resize.num_of_resize_events > 1) debounce_time = MAX(0.2, debounce_time); + if (w->live_resize.num_of_resize_events > 1 && OPT(resize_draw_strategy) == RESIZE_DRAW_SIZE) debounce_time = MAX(0.2, debounce_time); if (now - w->live_resize.last_resize_event_at >= debounce_time) update_viewport = true; else { global_state.has_pending_resizes = true;