diff --git a/sway/commands/output.c b/sway/commands/output.c index 2790bd631..013f17b28 100644 --- a/sway/commands/output.c +++ b/sway/commands/output.c @@ -103,7 +103,7 @@ struct cmd_results *cmd_output(int argc, char **argv) { // If reloading, the output configs will be applied after reading the // entire config and before the deferred commands so that an auto generated // workspace name is not given to re-enabled outputs. - if (!config->reloading) { + if (!config->reloading && !config->validating) { apply_output_config_to_outputs(output); if (background) { spawn_swaybg(); diff --git a/sway/config.c b/sway/config.c index 6d730f464..c20625cfc 100644 --- a/sway/config.c +++ b/sway/config.c @@ -404,7 +404,7 @@ static bool load_config(const char *path, struct sway_config *config, sway_log(SWAY_ERROR, "Error(s) loading config!"); } - return true; + return config->active || !config->validating || config_load_success; } bool load_main_config(const char *file, bool is_active, bool validating) { diff --git a/sway/main.c b/sway/main.c index d4585f733..bd6c1ae42 100644 --- a/sway/main.c +++ b/sway/main.c @@ -315,7 +315,7 @@ int main(int argc, char **argv) { if (debug) { sway_log_init(SWAY_DEBUG, sway_terminate); wlr_log_init(WLR_DEBUG, NULL); - } else if (verbose || validate) { + } else if (verbose) { sway_log_init(SWAY_INFO, sway_terminate); wlr_log_init(WLR_INFO, NULL); } else {