From f070b68396f2e37a94dc8678189f42b1800b7e35 Mon Sep 17 00:00:00 2001 From: DreamMaoMao <2523610504@qq.com> Date: Sun, 16 Feb 2025 21:22:22 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=BB=E9=99=A4=E6=97=A0=E5=85=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- parse_config.h | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/parse_config.h b/parse_config.h index 4539c77a..d1396143 100644 --- a/parse_config.h +++ b/parse_config.h @@ -349,6 +349,12 @@ FuncType parse_func_name(char *func_name,Arg *arg, char *arg_value) { func = viewtoright_have_client; } else if (strcmp(func_name, "reload_config") == 0) { func = reload_config; + } else if (strcmp(func_name, "tag") == 0) { + func = tag; + (*arg).i = 1 << atoi(arg_value); + } else if (strcmp(func_name, "view") == 0) { + func = bind_to_view; + (*arg).i = 1 << atoi(arg_value); } else { return NULL; } @@ -533,7 +539,6 @@ void parse_config_line(Config *config, const char *line) { rule->isfloating = atoi(val); } else if (strcmp(key, "title") == 0) { rule->title = strdup(val); - logtofile(rule->title); } else if (strcmp(key, "appid") == 0) { rule->id = strdup(val); } else if (strcmp(key, "animation_type") == 0) { @@ -544,10 +549,8 @@ void parse_config_line(Config *config, const char *line) { rule->monitor = atoi(val); } else if (strcmp(key, "width") == 0) { rule->width = atoi(val); - lognumtofile(rule->width); } else if (strcmp(key, "height") == 0) { rule->height = atoi(val); - lognumtofile(rule->height); } else if (strcmp(key, "isnoborder") == 0) { rule->isnoborder = atoi(val); } else if (strcmp(key, "scroller_proportion") == 0) {