From 555a0fa7526cb0b5701540a0ce365551a25b6f66 Mon Sep 17 00:00:00 2001 From: Okan Demirmen Date: Mon, 29 Oct 2012 19:46:04 +0000 Subject: 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. --- app/cwm/conf.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/app/cwm/conf.c b/app/cwm/conf.c index 60e49ca66..efe905451 100644 --- a/app/cwm/conf.c +++ b/app/cwm/conf.c @@ -15,7 +15,7 @@ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * - * $OpenBSD: conf.c,v 1.99 2012/05/13 15:15:54 okan Exp $ + * $OpenBSD: conf.c,v 1.100 2012/10/29 19:46:03 okan Exp $ */ #include @@ -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 { -- cgit v1.2.3