Only wait 0.2 secs after live resize if the resize strategy is "size"

This commit is contained in:
Kovid Goyal 2019-05-12 15:39:03 +05:30
parent ad672fc9d6
commit c27cf31a7c
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -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;