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@ --- conf.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'conf.c') 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 @@ -60,6 +60,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) { @@ -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); } -- cgit v1.2.3-2-gb3c3