diff options
author | Drew DeVault <[email protected]> | 2018-01-05 09:23:13 -0500 |
---|---|---|
committer | GitHub <[email protected]> | 2018-01-05 09:23:13 -0500 |
commit | c5452a3220b0f42c310a17a375908535e661debf (patch) | |
tree | eb3977fb64b7b739f8575d03402e235fa9836921 /sway/commands.c | |
parent | 7dad5cd18c57d632093778e526a811d07aca8fe6 (diff) | |
parent | 19ddb70a3296a7cc3256be65c488c18d87de4261 (diff) |
Merge pull request #1552 from martinetd/cleanup
config cleanup & implement free_config
Diffstat (limited to 'sway/commands.c')
-rw-r--r-- | sway/commands.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sway/commands.c b/sway/commands.c index b0078a46..c1c6dc5d 100644 --- a/sway/commands.c +++ b/sway/commands.c @@ -70,8 +70,10 @@ void apply_input_config(struct input_config *input) { list_add(config->input_configs, input); } + struct input_config *old_input_config = current_input_config; current_input_config = input; sway_input_manager_apply_input_config(input_manager, input); + current_input_config = old_input_config; } void apply_seat_config(struct seat_config *seat) { @@ -195,7 +197,7 @@ static struct cmd_handler *find_handler(char *line, enum cmd_status block) { struct cmd_results *handle_command(char *_exec) { // Even though this function will process multiple commands we will only // return the last error, if any (for now). (Since we have access to an - // error string we could e.g. concatonate all errors there.) + // error string we could e.g. concatenate all errors there.) struct cmd_results *results = NULL; char *exec = strdup(_exec); char *head = exec; |