change: remove width and height arg for toggle_name_scratchpad

This commit is contained in:
DreamMaoMao 2025-09-05 19:10:10 +08:00
parent 7d15562c6e
commit 6b5d5b0919
2 changed files with 1 additions and 5 deletions

View file

@ -852,9 +852,7 @@ FuncType parse_func_name(char *func_name, Arg *arg, char *arg_value,
func = toggle_named_scratchpad;
(*arg).v = strdup(arg_value);
(*arg).v2 = strdup(arg_value2);
(*arg).v3 = strdup(arg_value5);
(*arg).ui = arg_value3 ? atoi(arg_value3) : 0;
(*arg).ui2 = arg_value4 ? atoi(arg_value4) : 0;
(*arg).v3 = strdup(arg_value3);
} else {
return NULL;
}

View file

@ -1011,8 +1011,6 @@ void toggle_named_scratchpad(const Arg *arg) {
}
target_client->isnamedscratchpad = 1;
target_client->scratchpad_width = arg->ui;
target_client->scratchpad_height = arg->ui2;
apply_named_scratchpad(target_client);
}