aboutsummaryrefslogtreecommitdiffstats
path: root/sway/config/output.c
diff options
context:
space:
mode:
Diffstat (limited to 'sway/config/output.c')
-rw-r--r--sway/config/output.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/sway/config/output.c b/sway/config/output.c
index 8dfa8c57..19b9989a 100644
--- a/sway/config/output.c
+++ b/sway/config/output.c
@@ -425,6 +425,10 @@ bool apply_output_config(struct output_config *oc, struct sway_output *output) {
425 return false; 425 return false;
426 } 426 }
427 427
428 if (oc && !oc->enabled) {
429 return true;
430 }
431
428 if (config->reloading) { 432 if (config->reloading) {
429 output_damage_whole(output); 433 output_damage_whole(output);
430 } 434 }
@@ -464,7 +468,7 @@ bool apply_output_config(struct output_config *oc, struct sway_output *output) {
464 output->width = output_box->width; 468 output->width = output_box->width;
465 output->height = output_box->height; 469 output->height = output_box->height;
466 470
467 if ((!oc || oc->enabled) && !output->configured) { 471 if (!output->configured) {
468 output_configure(output); 472 output_configure(output);
469 } 473 }
470 474