diff options
author | Brian Ashworth <bosrsf04@gmail.com> | 2019-12-03 17:27:50 -0500 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2019-12-04 02:11:22 +0100 |
commit | fe7ec8024c910ec3f0e7cb06bdcb8de2d4afcb59 (patch) | |
tree | b9c76beb1ffead027c932d0484d4299f49aca839 /sway | |
parent | ad189d27f97076c11e87ecd3b89859a49f58b031 (diff) | |
download | sway-fe7ec8024c910ec3f0e7cb06bdcb8de2d4afcb59.tar.xz |
config: apply input type configs on reload
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.
Diffstat (limited to 'sway')
-rw-r--r-- | sway/config.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sway/config.c b/sway/config.c index 553cba2b..34704277 100644 --- a/sway/config.c +++ b/sway/config.c @@ -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]); } |