aboutsummaryrefslogtreecommitdiffstats
path: root/conf.c
diff options
context:
space:
mode:
authorokan2009-05-17 23:54:17 +0000
committerokan2009-05-17 23:54:17 +0000
commitbd4c82d0c649eb5f87395f2cd705dfba9013a257 (patch)
treed2cf8325e3bb9dc240e82b9324b15fe7baf632f0 /conf.c
parenta83ec02263f57eac22f091d37c7e678aed7b8d38 (diff)
downloadcwm-bd4c82d0c649eb5f87395f2cd705dfba9013a257.tar.gz
redraw all borders at once on reload
"sure" oga@
Diffstat (limited to 'conf.c')
-rw-r--r--conf.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/conf.c b/conf.c
index 4c17b06..6ef0fc0 100644
--- a/conf.c
+++ b/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.
*
- * $Id: conf.c,v 1.61 2009/05/17 23:40:57 okan Exp $
+ * $Id: conf.c,v 1.62 2009/05/17 23:54:17 okan Exp $
*/
#include "headers.h"
@@ -79,12 +79,16 @@ conf_color(struct conf *c)
void
conf_reload(struct conf *c)
{
+ struct client_ctx *cc;
+
if (parse_config(c->conf_path, c) == -1) {
warnx("config file %s has errors, not reloading", c->conf_path);
return;
}
conf_color(c);
+ TAILQ_FOREACH(cc, &Clientq, entry)
+ client_draw_border(cc);
conf_font(c);
}