From fe7ec8024c910ec3f0e7cb06bdcb8de2d4afcb59 Mon Sep 17 00:00:00 2001 From: Brian Ashworth Date: Tue, 3 Dec 2019 17:27:50 -0500 Subject: [PATCH] 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. --- sway/config.c | 5 +++++ 1 file changed, 5 insertions(+) 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]); }