summaryrefslogtreecommitdiffstats
path: root/usr.bin/tmux/server-client.c
diff options
context:
space:
mode:
authornicm <nicm@openbsd.org>2010-01-03 12:51:05 +0000
committernicm <nicm@openbsd.org>2010-01-03 12:51:05 +0000
commitb9b22aa83303ccf463728d50f9505a51470b3117 (patch)
tree3f4735bad806835dd51b1b9bfc516eddfa1c0d74 /usr.bin/tmux/server-client.c
parentdisk cache mode page (diff)
downloadwireguard-openbsd-b9b22aa83303ccf463728d50f9505a51470b3117.tar.xz
wireguard-openbsd-b9b22aa83303ccf463728d50f9505a51470b3117.zip
Options to set the colour of the pane borders, with different colours for the
active pane.
Diffstat (limited to 'usr.bin/tmux/server-client.c')
-rw-r--r--usr.bin/tmux/server-client.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/usr.bin/tmux/server-client.c b/usr.bin/tmux/server-client.c
index 2e33154ec15..93130d06616 100644
--- a/usr.bin/tmux/server-client.c
+++ b/usr.bin/tmux/server-client.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: server-client.c,v 1.26 2009/12/10 09:16:52 nicm Exp $ */
+/* $OpenBSD: server-client.c,v 1.27 2010/01/03 12:51:05 nicm Exp $ */
/*
* Copyright (c) 2009 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -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. */