summaryrefslogtreecommitdiffstats
path: root/server-fn.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@openbsd.org>2010-01-03 12:51:05 +0000
committerNicholas Marriott <nicm@openbsd.org>2010-01-03 12:51:05 +0000
commit7e4f8b45b64b0cbe889c5846806038c4c45c36e8 (patch)
treec7c25f6c65f3dac1a9b40fe5e4e8cf8f23bdb6e0 /server-fn.c
parent121ba57b55adc9aff5b131cfac310ac41c0491ba (diff)
Options to set the colour of the pane borders, with different colours for the
active pane.
Diffstat (limited to 'server-fn.c')
-rw-r--r--server-fn.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/server-fn.c b/server-fn.c
index df6aa134..ce5e518d 100644
--- a/server-fn.c
+++ b/server-fn.c
@@ -165,6 +165,21 @@ server_redraw_window(struct window *w)
}
void
+server_redraw_window_borders(struct window *w)
+{
+ struct client *c;
+ u_int i;
+
+ for (i = 0; i < ARRAY_LENGTH(&clients); i++) {
+ c = ARRAY_ITEM(&clients, i);
+ if (c == NULL || c->session == NULL)
+ continue;
+ if (c->session->curw->window == w)
+ c->flags |= CLIENT_BORDERS;
+ }
+}
+
+void
server_status_window(struct window *w)
{
struct session *s;