From 4cb9b524e74bf3eb9715b232c8a0261624e35869 Mon Sep 17 00:00:00 2001 From: okan Date: Mon, 3 Oct 2016 14:42:34 +0000 Subject: Defaults are split between defines and conf_init(); normalize these, as well as give 'sticky' groups its own variable. --- parse.y | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'parse.y') diff --git a/parse.y b/parse.y index 472839c..c615d0b 100644 --- a/parse.y +++ b/parse.y @@ -1,4 +1,4 @@ -/* $OpenBSD: parse.y,v 1.64 2015/05/17 04:39:50 kspillner Exp $ */ +/* $OpenBSD: parse.y,v 1.65 2016/10/03 14:42:34 okan Exp $ */ /* * Copyright (c) 2002, 2003, 2004 Henning Brauer @@ -112,10 +112,7 @@ main : FONTNAME STRING { conf->font = $2; } | STICKY yesno { - if ($2 == 0) - conf->flags &= ~CONF_STICKY_GROUPS; - else - conf->flags |= CONF_STICKY_GROUPS; + conf->stickygroups = $2; } | BORDERWIDTH NUMBER { if ($2 < 0 || $2 > UINT_MAX) { -- cgit v1.2.3-2-gb3c3