Cache scene for client and invalidate when changes.

This commit is contained in:
Nicholas Marriott
2026-06-16 23:04:57 +01:00
parent 2af751d78d
commit b7fa115aab
6 changed files with 77 additions and 6 deletions

View File

@@ -453,6 +453,7 @@ layout_fix_panes(struct window *w, struct window_pane *skip)
window_pane_resize(wp, sx, sy);
}
screen_redraw_invalidate_scene(w);
}
/* Count the number of available cells in a layout. */
@@ -777,6 +778,7 @@ layout_resize_floating_pane_to(struct window_pane *wp, enum layout_type type,
lc->sy = size;
else
lc->sx = size;
screen_redraw_invalidate_scene(wp->window);
}
/* Resize a floating pane relative to its current size. */
@@ -811,6 +813,7 @@ layout_resize_floating_pane(struct window_pane *wp, enum layout_type type,
if (opposite)
lc->xoff -= change;
}
screen_redraw_invalidate_scene(wp->window);
}
/* Resize a layout cell. */