]> git.lizzy.rs Git - bspwm.git/commitdiff
Fix parsing hidden field
authorMatt Vollrath <matt@endpoint.com>
Fri, 15 May 2020 04:54:43 +0000 (00:54 -0400)
committerMatt Vollrath <matt@endpoint.com>
Fri, 15 May 2020 04:54:43 +0000 (00:54 -0400)
hidden was always set true if present, use the parsed value instead.

src/rule.c

index 6ef3a2fe248905132ab480620af2c9029e7b3a7d..b0d4c0b14bcba4b896f4bb583a870f22be38815e 100644 (file)
@@ -399,7 +399,7 @@ void parse_key_value(char *key, char *value, rule_consequence_t *csq)
                }
        } else if (parse_bool(value, &v)) {
                if (streq("hidden", key)) {
-                       csq->hidden = true;
+                       csq->hidden = v;
                }
 #define SETCSQ(name) \
                else if (streq(#name, key)) { \