summary refs log tree commit diff
path: root/parse.y
diff options
context:
space:
mode:
authorokan <okan>2016-10-03 14:42:34 +0000
committerokan <okan>2016-10-03 14:42:34 +0000
commit03f5dc219e20edbcf4b7eac1f733a188ab8f7c29 (patch)
treef0bde6dbe80ee735314c5a1136c8011d6bda14b0 /parse.y
parent792f85cde97742d0c580ee2354044870d0f8754f (diff)
downloadcwm-03f5dc219e20edbcf4b7eac1f733a188ab8f7c29.tar.gz
cwm-03f5dc219e20edbcf4b7eac1f733a188ab8f7c29.tar.xz
cwm-03f5dc219e20edbcf4b7eac1f733a188ab8f7c29.zip
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.y5
1 files changed, 1 insertions, 4 deletions
diff --git a/parse.y b/parse.y
index dd0714e..c035e4e 100644
--- a/parse.y
+++ b/parse.y
@@ -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) {