on reload, run each client through conf_client to pick up potential

ignore and bwidth changes; also add a hack for existing maximized
windows so they don't inherit a new bwidth.

based on a diff from, and discussion with, Tiago Cunha.
This commit is contained in:
okan 2012-10-29 19:46:03 +00:00
parent 56358be755
commit c256052308

7
conf.c
View File

@ -104,9 +104,14 @@ conf_reload(struct conf *c)
conf_font(c, sc);
menu_init(sc);
}
TAILQ_FOREACH(cc, &Clientq, entry)
TAILQ_FOREACH(cc, &Clientq, entry) {
conf_client(cc);
/* XXX Does not take hmax/vmax into account. */
if ((cc->flags & CLIENT_MAXFLAGS) == CLIENT_MAXIMIZED)
cc->bwidth = 0;
client_draw_border(cc);
}
}
static struct {
char *key;