summaryrefslogtreecommitdiff
path: root/usr.bin/tmux/server-fn.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@cvs.openbsd.org>2010-01-03 12:51:06 +0000
committerNicholas Marriott <nicm@cvs.openbsd.org>2010-01-03 12:51:06 +0000
commit753fb84f15e11c44c8685795d7b697f140220545 (patch)
tree6d6836155398fe3c2436d3dd69f9ae8dd4fac687 /usr.bin/tmux/server-fn.c
parentcf7a04fc89256d70368808863280c114fa14cddc (diff)
Options to set the colour of the pane borders, with different colours for the
active pane.
Diffstat (limited to 'usr.bin/tmux/server-fn.c')
-rw-r--r--usr.bin/tmux/server-fn.c17
1 files changed, 16 insertions, 1 deletions
diff --git a/usr.bin/tmux/server-fn.c b/usr.bin/tmux/server-fn.c
index 8364f314913..47787fad308 100644
--- a/usr.bin/tmux/server-fn.c
+++ b/usr.bin/tmux/server-fn.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: server-fn.c,v 1.32 2009/12/22 10:20:08 nicm Exp $ */
+/* $OpenBSD: server-fn.c,v 1.33 2010/01/03 12:51:05 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -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;