From ca824a7fe81578db1453405dce3183d09166e0b0 Mon Sep 17 00:00:00 2001 From: DreamMaoMao <2523610504@qq.com> Date: Mon, 15 Sep 2025 22:16:21 +0800 Subject: [PATCH] feat: allow set ~0 layout in tagrule --- src/config/parse_config.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/config/parse_config.h b/src/config/parse_config.h index a0b29c3..0e93a3c 100644 --- a/src/config/parse_config.h +++ b/src/config/parse_config.h @@ -1360,7 +1360,7 @@ void parse_config_line(Config *config, const char *line) { trim_whitespace(val); if (strcmp(key, "id") == 0) { - rule->id = CLAMP_INT(atoi(val), 1, LENGTH(tags)); + rule->id = CLAMP_INT(atoi(val), 0, LENGTH(tags)); } else if (strcmp(key, "layout_name") == 0) { rule->layout_name = strdup(val); } else if (strcmp(key, "monitor_name") == 0) {