aboutsummaryrefslogtreecommitdiffstats
path: root/parse.y
diff options
context:
space:
mode:
authorokan2016-10-03 14:42:34 +0000
committerokan2016-10-03 14:42:34 +0000
commit4cb9b524e74bf3eb9715b232c8a0261624e35869 (patch)
treec5c781a73db46ca1579c5bea9539d497ed36fa78 /parse.y
parent81d2fa85214b3c84c60b29cf852fd6618ebaacc9 (diff)
downloadcwm-4cb9b524e74bf3eb9715b232c8a0261624e35869.tar.gz
Defaults are split between defines and conf_init(); normalize these, as
well as give 'sticky' groups its own variable.
Diffstat (limited to 'parse.y')
-rw-r--r--parse.y7
1 files changed, 2 insertions, 5 deletions
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 <henning@openbsd.org>
@@ -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) {