mirror of
https://github.com/swaywm/sway.git
synced 2025-11-07 13:29:56 -05:00
parent
59a1c5c28c
commit
eacf3d0396
4 changed files with 22 additions and 16 deletions
|
|
@ -215,11 +215,8 @@ static struct cmd_results *cmd_bindsym(int argc, char **argv) {
|
|||
struct cmd_results *error = NULL;
|
||||
if ((error = checkarg(argc, "bindsym", EXPECTED_MORE_THAN, 1))) {
|
||||
return error;
|
||||
} else if (!config->reading) {
|
||||
return cmd_results_new(CMD_FAILURE, "bindsym", "Can only be used in config file.");
|
||||
}
|
||||
|
||||
|
||||
struct sway_binding *binding = malloc(sizeof(struct sway_binding));
|
||||
binding->keys = create_list();
|
||||
binding->modifiers = 0;
|
||||
|
|
@ -283,11 +280,8 @@ static struct cmd_results *cmd_bindcode(int argc, char **argv) {
|
|||
struct cmd_results *error = NULL;
|
||||
if ((error = checkarg(argc, "bindcode", EXPECTED_MORE_THAN, 1))) {
|
||||
return error;
|
||||
} else if (!config->reading) {
|
||||
return cmd_results_new(CMD_FAILURE, "bindcode", "Can only be used in config file.");
|
||||
}
|
||||
|
||||
|
||||
struct sway_binding *binding = malloc(sizeof(struct sway_binding));
|
||||
binding->keys = create_list();
|
||||
binding->modifiers = 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue