aboutsummaryrefslogtreecommitdiffstats
path: root/sway/config.c
diff options
context:
space:
mode:
authorLibravatar Brian Ashworth <bosrsf04@gmail.com>2018-12-29 21:50:03 -0500
committerLibravatar emersion <contact@emersion.fr>2018-12-30 14:12:36 +0100
commit09bb71f6507d86d98b5b9825f28b91ddd4b9a09b (patch)
treede570ea01b3262c46441afb1f75570a4d44210e8 /sway/config.c
parentRevamp seat configs (diff)
downloadsway-09bb71f6507d86d98b5b9825f28b91ddd4b9a09b.tar.gz
sway-09bb71f6507d86d98b5b9825f28b91ddd4b9a09b.tar.zst
sway-09bb71f6507d86d98b5b9825f28b91ddd4b9a09b.zip
Verify seat fallback settings on reload
This fixes an issue where on reload, all input devices that were added via an implicit fallback to the default seat would be removed from the default seat and applications would crash due to the seat having no capabilities. On reload, there is a query for a seat config with the fallback setting set (it can either be true or false). If no such seat config exists, the default seat is created (if needed) and has the implicit fallback true applied to its seat config. This is the same procedure that occurs when a new input is detected.
Diffstat (limited to 'sway/config.c')
-rw-r--r--sway/config.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sway/config.c b/sway/config.c
index bb18c739..303774b4 100644
--- a/sway/config.c
+++ b/sway/config.c
@@ -465,6 +465,7 @@ bool load_main_config(const char *file, bool is_active, bool validating) {
465 if (config->swaynag_config_errors.pid > 0) { 465 if (config->swaynag_config_errors.pid > 0) {
466 swaynag_show(&config->swaynag_config_errors); 466 swaynag_show(&config->swaynag_config_errors);
467 } 467 }
468 input_manager_verify_fallback_seat();
468 } 469 }
469 470
470 if (old_config) { 471 if (old_config) {