Only wait 0.2 secs after live resize if the resize strategy is "size"
This commit is contained in:
parent
ad672fc9d6
commit
c27cf31a7c
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user