diff options
author | Drew DeVault <[email protected]> | 2016-03-27 12:41:42 -0400 |
---|---|---|
committer | Drew DeVault <[email protected]> | 2016-03-27 12:41:42 -0400 |
commit | eacf3d0396ab96ef1ce3e8e9433fa87850143cc6 (patch) | |
tree | 15bf2f3547563122d8486c3953eb3cff1c244551 /sway/commands.c | |
parent | 59a1c5c28cdd12e0dc0b61b55e261278dc305cc5 (diff) |
Loosen restrictions on commands, update docs
Closes #531
Diffstat (limited to 'sway/commands.c')
-rw-r--r-- | sway/commands.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/sway/commands.c b/sway/commands.c index e251f167..4d0da26e 100644 --- a/sway/commands.c +++ b/sway/commands.c @@ -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; |