Skip to content

Commit

Permalink
config: apply input type configs on reload
Browse files Browse the repository at this point in the history
When making the reload validation improvements, I forgot that input type
configs are stored in a separate list. This makes it so input type
configs are correctly applied on reload.
  • Loading branch information
RedSoxFan authored and emersion committed Dec 4, 2019
1 parent ad189d2 commit fe7ec80
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions sway/config.c
Original file line number Diff line number Diff line change
Expand Up @@ -529,6 +529,11 @@ bool load_main_config(const char *file, bool is_active, bool validating) {
input_manager_apply_input_config(config->input_configs->items[i]);
}

for (int i = 0; i < config->input_type_configs->length; i++) {
input_manager_apply_input_config(
config->input_type_configs->items[i]);
}

for (int i = 0; i < config->seat_configs->length; i++) {
input_manager_apply_seat_config(config->seat_configs->items[i]);
}
Expand Down

0 comments on commit fe7ec80

Please sign in to comment.