Do not call layout_fix_panes if wp is NULL (that is, a popup).

This commit is contained in:
nicm 2024-11-16 16:49:50 +00:00
parent c66628e52b
commit a854e36f2b

View File

@ -2204,6 +2204,8 @@ screen_write_alternateon(struct screen_write_ctx *ctx, struct grid_cell *gc,
screen_write_collect_flush(ctx, 0, __func__);
screen_alternate_on(ctx->s, gc, cursor);
if (wp != NULL)
layout_fix_panes(wp->window, NULL);
screen_write_initctx(ctx, &ttyctx, 1);
@ -2224,6 +2226,8 @@ screen_write_alternateoff(struct screen_write_ctx *ctx, struct grid_cell *gc,
screen_write_collect_flush(ctx, 0, __func__);
screen_alternate_off(ctx->s, gc, cursor);
if (wp != NULL)
layout_fix_panes(wp->window, NULL);
screen_write_initctx(ctx, &ttyctx, 1);