fix: mon dir arg miss parse

This commit is contained in:
DreamMaoMao 2025-02-20 16:13:57 +08:00
parent 140fb69fc6
commit 5d6e9bd4e6

View file

@ -362,10 +362,10 @@ FuncType parse_func_name(char *func_name, Arg *arg, char *arg_value) {
func = toggle_scratchpad;
} else if (strcmp(func_name, "focusmon") == 0) {
func = focusmon;
(*arg).i = atoi(arg_value);
(*arg).i = parse_direction(arg_value);
} else if (strcmp(func_name, "tagmon") == 0) {
func = tagmon;
(*arg).i = atoi(arg_value);
(*arg).i = parse_direction(arg_value);
} else if (strcmp(func_name, "incgaps") == 0) {
func = incgaps;
(*arg).i = atoi(arg_value);