|
|
@ -103,13 +103,13 @@ struct cmd_results *cmd_output(int argc, char **argv) {
|
|
|
|
|
|
|
|
|
|
|
|
bool background = output->background;
|
|
|
|
bool background = output->background;
|
|
|
|
|
|
|
|
|
|
|
|
output = store_output_config(output);
|
|
|
|
store_output_config(output);
|
|
|
|
|
|
|
|
|
|
|
|
// If reloading, the output configs will be applied after reading the
|
|
|
|
// If reloading, the output configs will be applied after reading the
|
|
|
|
// entire config and before the deferred commands so that an auto generated
|
|
|
|
// entire config and before the deferred commands so that an auto generated
|
|
|
|
// workspace name is not given to re-enabled outputs.
|
|
|
|
// workspace name is not given to re-enabled outputs.
|
|
|
|
if (!config->reloading && !config->validating) {
|
|
|
|
if (!config->reloading && !config->validating) {
|
|
|
|
apply_output_config_to_outputs(output);
|
|
|
|
apply_all_output_configs();
|
|
|
|
if (background) {
|
|
|
|
if (background) {
|
|
|
|
if (!spawn_swaybg()) {
|
|
|
|
if (!spawn_swaybg()) {
|
|
|
|
return cmd_results_new(CMD_FAILURE,
|
|
|
|
return cmd_results_new(CMD_FAILURE,
|
|
|
|