diff options
author | okan | 2016-10-03 14:42:34 +0000 |
---|---|---|
committer | okan | 2016-10-03 14:42:34 +0000 |
commit | 4cb9b524e74bf3eb9715b232c8a0261624e35869 (patch) | |
tree | c5c781a73db46ca1579c5bea9539d497ed36fa78 /parse.y | |
parent | 81d2fa85214b3c84c60b29cf852fd6618ebaacc9 (diff) | |
download | cwm-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.y | 7 |
1 files changed, 2 insertions, 5 deletions
@@ -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) { |