From 7e4f8b45b64b0cbe889c5846806038c4c45c36e8 Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Sun, 3 Jan 2010 12:51:05 +0000 Subject: Options to set the colour of the pane borders, with different colours for the active pane. --- server-client.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'server-client.c') diff --git a/server-client.c b/server-client.c index 02edabc6..c321a4c2 100644 --- a/server-client.c +++ b/server-client.c @@ -463,8 +463,8 @@ server_client_check_redraw(struct client *c) } if (c->flags & CLIENT_REDRAW) { - screen_redraw_screen(c, 0); - c->flags &= ~CLIENT_STATUS; + screen_redraw_screen(c, 0, 0); + c->flags &= ~(CLIENT_STATUS|CLIENT_BORDERS); } else { TAILQ_FOREACH(wp, &c->session->curw->window->panes, entry) { if (wp->flags & PANE_REDRAW) @@ -472,12 +472,15 @@ server_client_check_redraw(struct client *c) } } + if (c->flags & CLIENT_BORDERS) + screen_redraw_screen(c, 0, 1); + if (c->flags & CLIENT_STATUS) - screen_redraw_screen(c, 1); + screen_redraw_screen(c, 1, 0); c->tty.flags |= flags; - c->flags &= ~(CLIENT_REDRAW|CLIENT_STATUS); + c->flags &= ~(CLIENT_REDRAW|CLIENT_STATUS|CLIENT_BORDERS); } /* Set client title. */ -- cgit