summary refs log tree commit diff
path: root/conf.c
diff options
context:
space:
mode:
authortodd <todd>2009-01-21 15:04:38 +0000
committertodd <todd>2009-01-21 15:04:38 +0000
commit1b269199c16190c92f9318152c5beb84a854be3c (patch)
tree45382bb1c591f4f5e9fb9391d9bf70fd8b158937 /conf.c
parent0548673f2f9c0cc89c85bb5789d111dabf1faa67 (diff)
downloadcwm-1b269199c16190c92f9318152c5beb84a854be3c.tar.gz
cwm-1b269199c16190c92f9318152c5beb84a854be3c.tar.xz
cwm-1b269199c16190c92f9318152c5beb84a854be3c.zip
borderwidth as a cwmrc(5) keyword, really helps debugging
from okan@
ok oga@
Diffstat (limited to 'conf.c')
-rw-r--r--conf.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/conf.c b/conf.c
index 74a07af..f31c34e 100644
--- a/conf.c
+++ b/conf.c
@@ -76,6 +76,7 @@ void
 conf_init(struct conf *c)
 {
 	c->flags = 0;
+	c->bwidth = CONF_BWIDTH;
 
 	TAILQ_INIT(&c->ignoreq);
 	TAILQ_INIT(&c->cmdq);
@@ -201,7 +202,7 @@ conf_client(struct client_ctx *cc)
 	} else
 		ignore = 1;
 
-	cc->bwidth = ignore ? 0 : CLIENT_BWIDTH;
+	cc->bwidth = ignore ? 0 : Conf.bwidth;
 	cc->flags |= ignore ? CLIENT_IGNORE : 0;
 }