diff options
author | Brian Ashworth <bosrsf04@gmail.com> | 2018-07-20 22:17:20 -0400 |
---|---|---|
committer | Brian Ashworth <bosrsf04@gmail.com> | 2018-07-20 22:17:20 -0400 |
commit | bc7d3321093339d34839718b35af034de4aeb9f1 (patch) | |
tree | d125902e937c72b566a09b2a91d78040f82906b8 /sway/config.c | |
parent | 51730a059778e1d91e2f4b412f39e77a66f48155 (diff) |
Reset outputs on reload
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 4b892852..ed624bfa 100644 --- a/sway/config.c +++ b/sway/config.c @@ -361,6 +361,7 @@ bool load_main_config(const char *file, bool is_active) { wlr_log(WLR_DEBUG, "Performing configuration file reload"); config->reloading = true; config->active = true; + create_default_output_configs(); } config->current_config_path = path; @@ -419,6 +420,9 @@ bool load_main_config(const char *file, bool is_active) { success = success && load_config(path, config); if (is_active) { + for (int i = 0; i < config->output_configs->length; i++) { + apply_output_config_to_outputs(config->output_configs->items[i]); + } config->reloading = false; } |