Defaults are split between defines and conf_init(); normalize these, as

well as give 'sticky' groups its own variable.
This commit is contained in:
okan
2016-10-03 14:42:34 +00:00
parent 792f85cde9
commit 03f5dc219e
4 changed files with 13 additions and 20 deletions

View File

@@ -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) {