diff options
author | Brian Ashworth <bosrsf04@gmail.com> | 2019-01-09 00:57:23 -0500 |
---|---|---|
committer | Brian Ashworth <bosrsf04@gmail.com> | 2019-01-09 01:06:21 -0500 |
commit | f33969358c77ea440677a97b4f9a5fb2013ca5ea (patch) | |
tree | 7840ff5e7d8573440c2b0386709d60fd5b1306f3 /sway/config.c | |
parent | Merge pull request #3385 from robertgzr/reset_output_mapping (diff) | |
download | sway-f33969358c77ea440677a97b4f9a5fb2013ca5ea.tar.gz sway-f33969358c77ea440677a97b4f9a5fb2013ca5ea.tar.zst sway-f33969358c77ea440677a97b4f9a5fb2013ca5ea.zip |
reload: apply seat cfgs after reading entire cfg
Wait until all seat configs have been read before applying them on
reload. This prevents unnecessary attachment/detachment of input
devices and therefore creation/destruction of seat devices as
individual lines are read.
Diffstat (limited to 'sway/config.c')
-rw-r--r-- | sway/config.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sway/config.c b/sway/config.c index 8a0b293c..dfbe4cb9 100644 --- a/sway/config.c +++ b/sway/config.c | |||
@@ -463,7 +463,11 @@ bool load_main_config(const char *file, bool is_active, bool validating) { | |||
463 | if (config->swaynag_config_errors.pid > 0) { | 463 | if (config->swaynag_config_errors.pid > 0) { |
464 | swaynag_show(&config->swaynag_config_errors); | 464 | swaynag_show(&config->swaynag_config_errors); |
465 | } | 465 | } |
466 | |||
466 | input_manager_verify_fallback_seat(); | 467 | input_manager_verify_fallback_seat(); |
468 | for (int i = 0; i < config->seat_configs->length; i++) { | ||
469 | input_manager_apply_seat_config(config->seat_configs->items[i]); | ||
470 | } | ||
467 | } | 471 | } |
468 | 472 | ||
469 | if (old_config) { | 473 | if (old_config) { |