Add a client redraw-window flag instead of the redraw-all flag and for

all just use the three flags together (window, borders, status).
This commit is contained in:
nicm
2018-08-19 16:45:03 +00:00
parent bd2896b65e
commit 88327c7698
6 changed files with 65 additions and 77 deletions

View File

@ -35,13 +35,13 @@ static void server_destroy_session_group(struct session *);
void
server_redraw_client(struct client *c)
{
c->flags |= CLIENT_REDRAW;
c->flags |= CLIENT_ALLREDRAWFLAGS;
}
void
server_status_client(struct client *c)
{
c->flags |= CLIENT_STATUS;
c->flags |= CLIENT_REDRAWSTATUS;
}
void
@ -110,7 +110,7 @@ server_redraw_window_borders(struct window *w)
TAILQ_FOREACH(c, &clients, entry) {
if (c->session != NULL && c->session->curw->window == w)
c->flags |= CLIENT_BORDERS;
c->flags |= CLIENT_REDRAWBORDERS;
}
}