Sync OpenBSD patchset 597:

Options to set the colour of the pane borders, with different colours for the
active pane.
This commit is contained in:
Tiago Cunha
2010-01-05 23:52:37 +00:00
parent 97c40b1f37
commit 106011aa53
10 changed files with 117 additions and 49 deletions

View File

@ -1,4 +1,4 @@
/* $Id: server-fn.c,v 1.100 2009-12-26 23:45:21 tcunha Exp $ */
/* $Id: server-fn.c,v 1.101 2010-01-05 23:52:37 tcunha Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@ -164,6 +164,21 @@ server_redraw_window(struct window *w)
w->flags |= WINDOW_REDRAW;
}
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)
{