Cancel pending resizes and resize immediately when entering alternate

screen, fixes flickering with scrollbars. GitHub issue 5351 from Michael
Grant.
This commit is contained in:
nicm
2026-07-09 07:35:05 +00:00
parent e242da168b
commit 161dbaf1ce

View File

@@ -2962,7 +2962,13 @@ screen_write_alternateon(struct screen_write_ctx *ctx, struct grid_cell *gc,
if (wp != NULL) {
window_pane_clear_resizes(wp, NULL);
if (event_initialized(&wp->resize_timer))
evtimer_del(&wp->resize_timer);
layout_fix_panes(wp->window, NULL);
if (!TAILQ_EMPTY(&wp->resize_queue)) {
window_pane_send_resize(wp, wp->sx, wp->sy);
window_pane_clear_resizes(wp, NULL);
}
server_redraw_window_borders(wp->window);
}