Use apply_all_output_configs to light up outputs

This allows us to test and if necessary degrade the entire backend
configuration to light everything up.
This commit is contained in:
Kenny Levinsen 2024-03-16 01:00:46 +01:00 committed by Simon Ser
parent 923f642b70
commit 98be797356
2 changed files with 5 additions and 7 deletions

View file

@ -103,13 +103,13 @@ struct cmd_results *cmd_output(int argc, char **argv) {
bool background = output->background;
output = store_output_config(output);
store_output_config(output);
// 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 && !config->validating) {
apply_output_config_to_outputs(output);
apply_all_output_configs();
if (background) {
if (!spawn_swaybg()) {
return cmd_results_new(CMD_FAILURE,