aboutsummaryrefslogtreecommitdiffstats
path: root/parse.y
diff options
context:
space:
mode:
authorokan2010-01-27 03:04:50 +0000
committerokan2010-01-27 03:04:50 +0000
commitcf907fa95c4a6c1fa13ad717089fa5d0cb099350 (patch)
tree6b333345d88e56bcf35f7f67aee73831f5790560 /parse.y
parentfb3ff22ef266df7aab2945a994a190f507cdfc51 (diff)
downloadcwm-cf907fa95c4a6c1fa13ad717089fa5d0cb099350.tar.gz
- allow per-screen gap; not (yet) user configurable.
- teach _NET_WORKAREA about gap. ok oga@
Diffstat (limited to '')
-rw-r--r--parse.y13
1 files changed, 6 insertions, 7 deletions
diff --git a/parse.y b/parse.y
index a7407e0..7a89663 100644
--- a/parse.y
+++ b/parse.y
@@ -1,4 +1,4 @@
-/* $OpenBSD: parse.y,v 1.24 2009/12/15 04:10:42 okan Exp $ */
+/* $OpenBSD: parse.y,v 1.25 2010/01/27 03:04:50 okan Exp $ */
/*
* Copyright (c) 2002, 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -150,10 +150,10 @@ main : FONTNAME STRING {
free($3);
}
| GAP NUMBER NUMBER NUMBER NUMBER {
- conf->gap_top = $2;
- conf->gap_bottom = $3;
- conf->gap_left = $4;
- conf->gap_right = $5;
+ conf->gap.top = $2;
+ conf->gap.bottom = $3;
+ conf->gap.left = $4;
+ conf->gap.right = $5;
}
| MOUSEBIND STRING string {
conf_mousebind(conf, $2, $3);
@@ -522,6 +522,7 @@ parse_config(const char *filename, struct conf *xconf)
xconf->flags = conf->flags;
xconf->bwidth = conf->bwidth;
xconf->mamount = conf->mamount;
+ xconf->gap = conf->gap;
while ((cmd = TAILQ_FIRST(&conf->cmdq)) != NULL) {
TAILQ_REMOVE(&conf->cmdq, cmd, entry);
@@ -557,8 +558,6 @@ parse_config(const char *filename, struct conf *xconf)
xconf->color[i].name = conf->color[i].name;
xconf->DefaultFontName = conf->DefaultFontName;
-
- bcopy(&(conf->gap_top), &(xconf->gap_top), sizeof(int) * 4);
}
free(conf);