mirror of
https://github.com/swaywm/sway.git
synced 2025-11-05 13:29:51 -05:00
seat config handler context
This commit is contained in:
parent
9e0595f26b
commit
cc3c713889
8 changed files with 31 additions and 8 deletions
|
|
@ -28,6 +28,9 @@ struct cmd_results *cmd_input(int argc, char **argv) {
|
|||
if (!has_context) {
|
||||
// caller did not give a context so create one just for this command
|
||||
config->handler_context.input_config = new_input_config(argv[0]);
|
||||
if (!config->handler_context.input_config) {
|
||||
return cmd_results_new(CMD_FAILURE, NULL, "Couldn't allocate config");
|
||||
}
|
||||
}
|
||||
|
||||
int argc_new = argc-2;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue