From cf907fa95c4a6c1fa13ad717089fa5d0cb099350 Mon Sep 17 00:00:00 2001 From: okan Date: Wed, 27 Jan 2010 03:04:50 +0000 Subject: - allow per-screen gap; not (yet) user configurable. - teach _NET_WORKAREA about gap. ok oga@ --- parse.y | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'parse.y') 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 @@ -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); -- cgit v1.2.3-2-gb3c3