change: remove width and height arg for toggle_name_scratchpad
This commit is contained in:
@@ -852,9 +852,7 @@ FuncType parse_func_name(char *func_name, Arg *arg, char *arg_value,
|
|||||||
func = toggle_named_scratchpad;
|
func = toggle_named_scratchpad;
|
||||||
(*arg).v = strdup(arg_value);
|
(*arg).v = strdup(arg_value);
|
||||||
(*arg).v2 = strdup(arg_value2);
|
(*arg).v2 = strdup(arg_value2);
|
||||||
(*arg).v3 = strdup(arg_value5);
|
(*arg).v3 = strdup(arg_value3);
|
||||||
(*arg).ui = arg_value3 ? atoi(arg_value3) : 0;
|
|
||||||
(*arg).ui2 = arg_value4 ? atoi(arg_value4) : 0;
|
|
||||||
} else {
|
} else {
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1011,8 +1011,6 @@ void toggle_named_scratchpad(const Arg *arg) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
target_client->isnamedscratchpad = 1;
|
target_client->isnamedscratchpad = 1;
|
||||||
target_client->scratchpad_width = arg->ui;
|
|
||||||
target_client->scratchpad_height = arg->ui2;
|
|
||||||
|
|
||||||
apply_named_scratchpad(target_client);
|
apply_named_scratchpad(target_client);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user