diff options
author | Tony Crisci <tony@dubstepdish.com> | 2018-01-20 11:44:34 -0500 |
---|---|---|
committer | Tony Crisci <tony@dubstepdish.com> | 2018-01-20 11:44:34 -0500 |
commit | cc3c713889e529c74888d9cd89af7039bfbae20c (patch) | |
tree | f40da3a0fc2639b6a22bdb0e323106f66d27ec45 /sway/commands/input.c | |
parent | input config handler context (diff) | |
download | sway-cc3c713889e529c74888d9cd89af7039bfbae20c.tar.gz sway-cc3c713889e529c74888d9cd89af7039bfbae20c.tar.zst sway-cc3c713889e529c74888d9cd89af7039bfbae20c.zip |
seat config handler context
Diffstat (limited to 'sway/commands/input.c')
-rw-r--r-- | sway/commands/input.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sway/commands/input.c b/sway/commands/input.c index 5de65621..fa9cf05a 100644 --- a/sway/commands/input.c +++ b/sway/commands/input.c | |||
@@ -28,6 +28,9 @@ struct cmd_results *cmd_input(int argc, char **argv) { | |||
28 | if (!has_context) { | 28 | if (!has_context) { |
29 | // caller did not give a context so create one just for this command | 29 | // caller did not give a context so create one just for this command |
30 | config->handler_context.input_config = new_input_config(argv[0]); | 30 | config->handler_context.input_config = new_input_config(argv[0]); |
31 | if (!config->handler_context.input_config) { | ||
32 | return cmd_results_new(CMD_FAILURE, NULL, "Couldn't allocate config"); | ||
33 | } | ||
31 | } | 34 | } |
32 | 35 | ||
33 | int argc_new = argc-2; | 36 | int argc_new = argc-2; |