aboutsummaryrefslogtreecommitdiffstats
path: root/sway/commands/output.c
diff options
context:
space:
mode:
Diffstat (limited to 'sway/commands/output.c')
-rw-r--r--sway/commands/output.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/sway/commands/output.c b/sway/commands/output.c
index df32c673..5e5d31b3 100644
--- a/sway/commands/output.c
+++ b/sway/commands/output.c
@@ -103,15 +103,18 @@ struct cmd_results *cmd_output(int argc, char **argv) {
103 103
104 bool background = output->background; 104 bool background = output->background;
105 105
106 output = store_output_config(output); 106 store_output_config(output);
107 107
108 // If reloading, the output configs will be applied after reading the 108 // If reloading, the output configs will be applied after reading the
109 // entire config and before the deferred commands so that an auto generated 109 // entire config and before the deferred commands so that an auto generated
110 // workspace name is not given to re-enabled outputs. 110 // workspace name is not given to re-enabled outputs.
111 if (!config->reloading && !config->validating) { 111 if (!config->reloading && !config->validating) {
112 apply_output_config_to_outputs(output); 112 apply_all_output_configs();
113 if (background) { 113 if (background) {
114 spawn_swaybg(); 114 if (!spawn_swaybg()) {
115 return cmd_results_new(CMD_FAILURE,
116 "Failed to apply background configuration");
117 }
115 } 118 }
116 } 119 }
117 120