Only wait 0.2 secs after live resize if the resize strategy is "size"
This commit is contained in:
@@ -835,7 +835,7 @@ process_pending_resizes(double now) {
|
|||||||
// if more than one resize event has occurred, wait at least 0.2 secs
|
// if more than one resize event has occurred, wait at least 0.2 secs
|
||||||
// before repainting, to avoid rapid transitions between the cells banner
|
// before repainting, to avoid rapid transitions between the cells banner
|
||||||
// and the normal screen
|
// 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;
|
if (now - w->live_resize.last_resize_event_at >= debounce_time) update_viewport = true;
|
||||||
else {
|
else {
|
||||||
global_state.has_pending_resizes = true;
|
global_state.has_pending_resizes = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user