mirror of
https://github.com/tmux/tmux.git
synced 2026-10-10 04:04:27 +00:00
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:
@@ -2962,7 +2962,13 @@ screen_write_alternateon(struct screen_write_ctx *ctx, struct grid_cell *gc,
|
|||||||
|
|
||||||
if (wp != NULL) {
|
if (wp != NULL) {
|
||||||
window_pane_clear_resizes(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);
|
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);
|
server_redraw_window_borders(wp->window);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user