Add a flag to redraw only the overlay, and remove the overlay on resize.

This commit is contained in:
nicm
2019-05-08 18:07:12 +00:00
parent a384245c5a
commit f9682d2e55
4 changed files with 13 additions and 5 deletions

View File

@ -447,7 +447,7 @@ screen_redraw_screen(struct client *c)
if (ctx.statuslines != 0 &&
(flags & (CLIENT_REDRAWSTATUS|CLIENT_REDRAWSTATUSALWAYS)))
screen_redraw_draw_status(&ctx);
if (c->overlay_draw != NULL)
if (c->overlay_draw != NULL && (flags & CLIENT_REDRAWOVERLAY))
c->overlay_draw(c, &ctx);
tty_reset(&c->tty);
}