From 57d4775e739e09359a8d8a21917e6f1ce2d826fe Mon Sep 17 00:00:00 2001 From: DreamMaoMao <2523610504@qq.com> Date: Sun, 16 Feb 2025 21:31:24 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=AA=97=E5=8F=A3=E8=A7=84?= =?UTF-8?q?=E5=88=99tag?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- parse_config.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/parse_config.h b/parse_config.h index d1396143..eb369f06 100644 --- a/parse_config.h +++ b/parse_config.h @@ -351,10 +351,10 @@ FuncType parse_func_name(char *func_name,Arg *arg, char *arg_value) { func = reload_config; } else if (strcmp(func_name, "tag") == 0) { func = tag; - (*arg).i = 1 << atoi(arg_value); + (*arg).ui = 1 << atoi(arg_value); } else if (strcmp(func_name, "view") == 0) { func = bind_to_view; - (*arg).i = 1 << atoi(arg_value); + (*arg).ui = 1 << atoi(arg_value); } else { return NULL; } @@ -544,7 +544,7 @@ void parse_config_line(Config *config, const char *line) { } else if (strcmp(key, "animation_type") == 0) { rule->animation_type = strdup(val); } else if (strcmp(key, "tags") == 0) { - rule->tags = atoi(val); + rule->tags = 1 << (atoi(val) - 1); } else if (strcmp(key, "monitor") == 0) { rule->monitor = atoi(val); } else if (strcmp(key, "width") == 0) {