diff options
author | okan | 2010-01-27 03:04:50 +0000 |
---|---|---|
committer | okan | 2010-01-27 03:04:50 +0000 |
commit | cf907fa95c4a6c1fa13ad717089fa5d0cb099350 (patch) | |
tree | 6b333345d88e56bcf35f7f67aee73831f5790560 /parse.y | |
parent | fb3ff22ef266df7aab2945a994a190f507cdfc51 (diff) | |
download | cwm-cf907fa95c4a6c1fa13ad717089fa5d0cb099350.tar.gz |
- allow per-screen gap; not (yet) user configurable.
- teach _NET_WORKAREA about gap.
ok oga@
Diffstat (limited to 'parse.y')
-rw-r--r-- | parse.y | 13 |
1 files changed, 6 insertions, 7 deletions
@@ -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); |