aboutsummaryrefslogtreecommitdiffstats
path: root/conf.c
diff options
context:
space:
mode:
authorokan2010-01-27 03:04:50 +0000
committerokan2010-01-27 03:04:50 +0000
commitcf907fa95c4a6c1fa13ad717089fa5d0cb099350 (patch)
tree6b333345d88e56bcf35f7f67aee73831f5790560 /conf.c
parentfb3ff22ef266df7aab2945a994a190f507cdfc51 (diff)
downloadcwm-cf907fa95c4a6c1fa13ad717089fa5d0cb099350.tar.gz
- allow per-screen gap; not (yet) user configurable.
- teach _NET_WORKAREA about gap. ok oga@
Diffstat (limited to 'conf.c')
-rw-r--r--conf.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/conf.c b/conf.c
index 6b3ed54..7272eb8 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.75 2009/12/15 04:10:42 okan Exp $
+ * $Id: conf.c,v 1.76 2010/01/27 03:04:50 okan Exp $
*/
#include <sys/param.h>
@@ -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);
}