aboutsummaryrefslogtreecommitdiffstats
path: root/sway/commands.c
diff options
context:
space:
mode:
Diffstat (limited to 'sway/commands.c')
-rw-r--r--sway/commands.c4
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) {
70 list_add(config->input_configs, input); 70 list_add(config->input_configs, input);
71 } 71 }
72 72
73 struct input_config *old_input_config = current_input_config;
73 current_input_config = input; 74 current_input_config = input;
74 sway_input_manager_apply_input_config(input_manager, input); 75 sway_input_manager_apply_input_config(input_manager, input);
76 current_input_config = old_input_config;
75} 77}
76 78
77void apply_seat_config(struct seat_config *seat) { 79void apply_seat_config(struct seat_config *seat) {
@@ -195,7 +197,7 @@ static struct cmd_handler *find_handler(char *line, enum cmd_status block) {
195struct cmd_results *handle_command(char *_exec) { 197struct cmd_results *handle_command(char *_exec) {
196 // Even though this function will process multiple commands we will only 198 // Even though this function will process multiple commands we will only
197 // return the last error, if any (for now). (Since we have access to an 199 // return the last error, if any (for now). (Since we have access to an
198 // error string we could e.g. concatonate all errors there.) 200 // error string we could e.g. concatenate all errors there.)
199 struct cmd_results *results = NULL; 201 struct cmd_results *results = NULL;
200 char *exec = strdup(_exec); 202 char *exec = strdup(_exec);
201 char *head = exec; 203 char *head = exec;