diff options
author | 2018-07-20 22:17:20 -0400 | |
---|---|---|
committer | 2018-07-20 22:17:20 -0400 | |
commit | bc7d3321093339d34839718b35af034de4aeb9f1 (patch) | |
tree | d125902e937c72b566a09b2a91d78040f82906b8 /sway/config.c | |
parent | Merge pull request #2317 from RyanDwyer/force-display-urgency-hint (diff) | |
download | sway-bc7d3321093339d34839718b35af034de4aeb9f1.tar.gz sway-bc7d3321093339d34839718b35af034de4aeb9f1.tar.zst sway-bc7d3321093339d34839718b35af034de4aeb9f1.zip |
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) { | |||
361 | wlr_log(WLR_DEBUG, "Performing configuration file reload"); | 361 | wlr_log(WLR_DEBUG, "Performing configuration file reload"); |
362 | config->reloading = true; | 362 | config->reloading = true; |
363 | config->active = true; | 363 | config->active = true; |
364 | create_default_output_configs(); | ||
364 | } | 365 | } |
365 | 366 | ||
366 | config->current_config_path = path; | 367 | config->current_config_path = path; |
@@ -419,6 +420,9 @@ bool load_main_config(const char *file, bool is_active) { | |||
419 | success = success && load_config(path, config); | 420 | success = success && load_config(path, config); |
420 | 421 | ||
421 | if (is_active) { | 422 | if (is_active) { |
423 | for (int i = 0; i < config->output_configs->length; i++) { | ||
424 | apply_output_config_to_outputs(config->output_configs->items[i]); | ||
425 | } | ||
422 | config->reloading = false; | 426 | config->reloading = false; |
423 | } | 427 | } |
424 | 428 | ||