summary refs log tree commit diff
path: root/conf.c
diff options
context:
space:
mode:
authorokan <okan>2010-01-27 03:04:50 +0000
committerokan <okan>2010-01-27 03:04:50 +0000
commite88bda0df5002adb58fb96bd8f5b5b34f619c41d (patch)
treefe4ebd536a985ed479a7df0bf79062ca02927619 /conf.c
parentccb207a8a8d95d9673614727a5f60facdf57b275 (diff)
downloadcwm-e88bda0df5002adb58fb96bd8f5b5b34f619c41d.tar.gz
cwm-e88bda0df5002adb58fb96bd8f5b5b34f619c41d.tar.xz
cwm-e88bda0df5002adb58fb96bd8f5b5b34f619c41d.zip
- allow per-screen gap; not (yet) user configurable.
- teach _NET_WORKAREA about gap.

ok oga@
Diffstat (limited to 'conf.c')
-rw-r--r--conf.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/conf.c b/conf.c
index 0764a4a..10135a6 100644
--- a/conf.c
+++ b/conf.c
@@ -61,6 +61,12 @@ conf_cmd_add(struct conf *c, char *image, char *label, int flags)
 }
 
 void
+conf_gap(struct conf *c, struct screen_ctx *sc)
+{
+	sc->gap = c->gap;
+}
+
+void
 conf_font(struct conf *c, struct screen_ctx *sc)
 {
 	sc->font = font_make(sc, c->DefaultFontName);
@@ -92,6 +98,7 @@ conf_reload(struct conf *c)
 	TAILQ_FOREACH(cc, &Clientq, entry)
 		client_draw_border(cc);
 	TAILQ_FOREACH(sc, &Screenq, entry) {
+		conf_gap(c, sc);
 		conf_color(c, sc);
 		conf_font(c, sc);
 	}