Skip to content

Commit

Permalink
#2203 implement window scratchpad
Browse files Browse the repository at this point in the history
  • Loading branch information
koekeishiya committed Apr 3, 2024
1 parent 896091a commit 8c021a4
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/message.c
Original file line number Diff line number Diff line change
Expand Up @@ -2560,8 +2560,13 @@ static bool parse_rule(FILE *rsp, char **message, struct rule *rule, struct toke
rule->label = string_copy(value);
} else if (string_equals(key, ARGUMENT_RULE_KEY_SCRATCHPAD)) {
if (exclusion) unsupported_exclusion = key;
rule->effects.scratchpad = string_copy(value);
rule->effects.manage = RULE_PROP_OFF;
if (!string_equals(value, ARGUMENT_WINDOW_SCRATCHPAD_RECOVER)) {
rule->effects.scratchpad = string_copy(value);
rule->effects.manage = RULE_PROP_OFF;
} else {
daemon_fail(rsp, "invalid value '%s' for key '%s'\n", value, key);
did_parse = false;
}
} else if (string_equals(key, ARGUMENT_RULE_KEY_APP)) {
has_filter = true;
rule->app = string_copy(value);
Expand Down

0 comments on commit 8c021a4

Please sign in to comment.