mirror of
https://github.com/swaywm/sway.git
synced 2024-12-30 17:06:40 +01:00
Fix segfault when running the resize command without arguments
This commit is contained in:
parent
4fd3996d77
commit
29224e7aec
1 changed files with 6 additions and 4 deletions
|
@ -219,15 +219,17 @@ struct cmd_results *cmd_resize(int argc, char **argv) {
|
|||
return cmd_results_new(CMD_INVALID, "resize",
|
||||
"Can only resize views/containers");
|
||||
}
|
||||
|
||||
struct cmd_results *error;
|
||||
if ((error = checkarg(argc, "resize", EXPECTED_AT_LEAST, 2))) {
|
||||
return error;
|
||||
}
|
||||
|
||||
if (strcasecmp(argv[0], "set") == 0) {
|
||||
// TODO
|
||||
//return cmd_resize_set(argc - 1, &argv[1]);
|
||||
return cmd_results_new(CMD_INVALID, "resize", "resize set unimplemented");
|
||||
}
|
||||
struct cmd_results *error;
|
||||
if ((error = checkarg(argc, "resize", EXPECTED_AT_LEAST, 2))) {
|
||||
return error;
|
||||
}
|
||||
|
||||
// TODO: resize grow|shrink left|right|up|down
|
||||
|
||||
|
|
Loading…
Reference in a new issue