mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2026-04-09 08:21:27 -04:00
去除无光
This commit is contained in:
parent
5492e16992
commit
f070b68396
1 changed files with 6 additions and 3 deletions
|
|
@ -349,6 +349,12 @@ FuncType parse_func_name(char *func_name,Arg *arg, char *arg_value) {
|
||||||
func = viewtoright_have_client;
|
func = viewtoright_have_client;
|
||||||
} else if (strcmp(func_name, "reload_config") == 0) {
|
} else if (strcmp(func_name, "reload_config") == 0) {
|
||||||
func = reload_config;
|
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 {
|
} else {
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
@ -533,7 +539,6 @@ void parse_config_line(Config *config, const char *line) {
|
||||||
rule->isfloating = atoi(val);
|
rule->isfloating = atoi(val);
|
||||||
} else if (strcmp(key, "title") == 0) {
|
} else if (strcmp(key, "title") == 0) {
|
||||||
rule->title = strdup(val);
|
rule->title = strdup(val);
|
||||||
logtofile(rule->title);
|
|
||||||
} else if (strcmp(key, "appid") == 0) {
|
} else if (strcmp(key, "appid") == 0) {
|
||||||
rule->id = strdup(val);
|
rule->id = strdup(val);
|
||||||
} else if (strcmp(key, "animation_type") == 0) {
|
} else if (strcmp(key, "animation_type") == 0) {
|
||||||
|
|
@ -544,10 +549,8 @@ void parse_config_line(Config *config, const char *line) {
|
||||||
rule->monitor = atoi(val);
|
rule->monitor = atoi(val);
|
||||||
} else if (strcmp(key, "width") == 0) {
|
} else if (strcmp(key, "width") == 0) {
|
||||||
rule->width = atoi(val);
|
rule->width = atoi(val);
|
||||||
lognumtofile(rule->width);
|
|
||||||
} else if (strcmp(key, "height") == 0) {
|
} else if (strcmp(key, "height") == 0) {
|
||||||
rule->height = atoi(val);
|
rule->height = atoi(val);
|
||||||
lognumtofile(rule->height);
|
|
||||||
} else if (strcmp(key, "isnoborder") == 0) {
|
} else if (strcmp(key, "isnoborder") == 0) {
|
||||||
rule->isnoborder = atoi(val);
|
rule->isnoborder = atoi(val);
|
||||||
} else if (strcmp(key, "scroller_proportion") == 0) {
|
} else if (strcmp(key, "scroller_proportion") == 0) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue