summaryrefslogtreecommitdiff
path: root/sway/config.c
diff options
context:
space:
mode:
authorBrian Ashworth <[email protected]>2019-01-09 00:09:20 -0500
committerBrian Ashworth <[email protected]>2019-01-09 11:24:15 -0500
commit4696f49ecc69aa86ea6bd53fc08abf6a32b4a414 (patch)
tree67c4e3d792c49ac7fbf6311c8b0d842768d29bc4 /sway/config.c
parent14cab7861294189f820e0830ae84ac7b15271342 (diff)
reload: reset input configs
This resets all input options to their defaults on reload. This also fixes some debug log typos in `input_manager_libinput_config_pointer`.
Diffstat (limited to 'sway/config.c')
-rw-r--r--sway/config.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sway/config.c b/sway/config.c
index f99f043c..cd0857f4 100644
--- a/sway/config.c
+++ b/sway/config.c
@@ -387,6 +387,8 @@ bool load_main_config(const char *file, bool is_active, bool validating) {
memcpy(&config->swaynag_config_errors,
&old_config->swaynag_config_errors,
sizeof(struct swaynag_instance));
+
+ input_manager_reset_all_inputs();
}
config->current_config_path = path;