summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sway/commands/output.c2
-rw-r--r--sway/config.c2
-rw-r--r--sway/main.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/sway/commands/output.c b/sway/commands/output.c
index 2790bd63..013f17b2 100644
--- a/sway/commands/output.c
+++ b/sway/commands/output.c
@@ -103,7 +103,7 @@ struct cmd_results *cmd_output(int argc, char **argv) {
103 // If reloading, the output configs will be applied after reading the 103 // If reloading, the output configs will be applied after reading the
104 // entire config and before the deferred commands so that an auto generated 104 // entire config and before the deferred commands so that an auto generated
105 // workspace name is not given to re-enabled outputs. 105 // workspace name is not given to re-enabled outputs.
106 if (!config->reloading) { 106 if (!config->reloading && !config->validating) {
107 apply_output_config_to_outputs(output); 107 apply_output_config_to_outputs(output);
108 if (background) { 108 if (background) {
109 spawn_swaybg(); 109 spawn_swaybg();
diff --git a/sway/config.c b/sway/config.c
index 6d730f46..c20625cf 100644
--- a/sway/config.c
+++ b/sway/config.c
@@ -404,7 +404,7 @@ static bool load_config(const char *path, struct sway_config *config,
404 sway_log(SWAY_ERROR, "Error(s) loading config!"); 404 sway_log(SWAY_ERROR, "Error(s) loading config!");
405 } 405 }
406 406
407 return true; 407 return config->active || !config->validating || config_load_success;
408} 408}
409 409
410bool load_main_config(const char *file, bool is_active, bool validating) { 410bool load_main_config(const char *file, bool is_active, bool validating) {
diff --git a/sway/main.c b/sway/main.c
index d4585f73..bd6c1ae4 100644
--- a/sway/main.c
+++ b/sway/main.c
@@ -315,7 +315,7 @@ int main(int argc, char **argv) {
315 if (debug) { 315 if (debug) {
316 sway_log_init(SWAY_DEBUG, sway_terminate); 316 sway_log_init(SWAY_DEBUG, sway_terminate);
317 wlr_log_init(WLR_DEBUG, NULL); 317 wlr_log_init(WLR_DEBUG, NULL);
318 } else if (verbose || validate) { 318 } else if (verbose) {
319 sway_log_init(SWAY_INFO, sway_terminate); 319 sway_log_init(SWAY_INFO, sway_terminate);
320 wlr_log_init(WLR_INFO, NULL); 320 wlr_log_init(WLR_INFO, NULL);
321 } else { 321 } else {