Image resizing code.

This commit is contained in:
Nicholas Marriott
2026-10-14 00:30:44 +01:00
parent e501ea12c7
commit 17ecceb153
3 changed files with 93 additions and 0 deletions

View File

@@ -1778,6 +1778,10 @@ window_pane_resize(struct window_pane *wp, u_int sx, u_int sy)
log_debug("%s: %%%u resize %ux%u", __func__, wp->id, sx, sy);
screen_resize(&wp->base, sx, sy, wp->base.saved_grid == NULL);
#ifdef ENABLE_IMAGES
if (sx > r->osx)
image_grid_resize_width(wp->base.grid, sx);
#endif
wme = TAILQ_FIRST(&wp->modes);
if (wme != NULL && wme->mode->resize != NULL)