mirror of
https://github.com/swaywm/sway.git
synced 2025-11-09 13:29:49 -05:00
Implement support for input wildcard
This commit is contained in:
parent
4a4f07ac25
commit
baeb28ea62
29 changed files with 183 additions and 266 deletions
|
|
@ -66,7 +66,15 @@ struct cmd_results *cmd_input(int argc, char **argv) {
|
|||
input_handlers, sizeof(input_handlers));
|
||||
}
|
||||
|
||||
free_input_config(config->handler_context.input_config);
|
||||
if (!res || res->status == CMD_SUCCESS) {
|
||||
struct input_config *ic =
|
||||
store_input_config(config->handler_context.input_config);
|
||||
|
||||
input_manager_apply_input_config(input_manager, ic);
|
||||
} else {
|
||||
free_input_config(config->handler_context.input_config);
|
||||
}
|
||||
|
||||
config->handler_context.input_config = NULL;
|
||||
|
||||
return res;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue