diff options
author | okan <okan> | 2012-10-29 19:46:03 +0000 |
---|---|---|
committer | okan <okan> | 2012-10-29 19:46:03 +0000 |
commit | c256052308d9135454b91fa16ba7aaef97923b4b (patch) | |
tree | 1e352e516418d2082885a974229b99f7126a9fb8 /conf.c | |
parent | 56358be75520d6b631da07590b4a034d850062c6 (diff) | |
download | cwm-c256052308d9135454b91fa16ba7aaef97923b4b.tar.gz cwm-c256052308d9135454b91fa16ba7aaef97923b4b.tar.xz cwm-c256052308d9135454b91fa16ba7aaef97923b4b.zip |
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.
Diffstat (limited to 'conf.c')
-rw-r--r-- | conf.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/conf.c b/conf.c index 8812c4f..8b26a0a 100644 --- a/conf.c +++ b/conf.c @@ -104,8 +104,13 @@ 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 { |