diff options
-rw-r--r-- | sway/desktop/output.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sway/desktop/output.c b/sway/desktop/output.c index 5edc8f96..691a285d 100644 --- a/sway/desktop/output.c +++ b/sway/desktop/output.c | |||
@@ -816,7 +816,7 @@ static void update_output_manager_config(struct sway_server *server) { | |||
816 | struct wlr_box *output_box = wlr_output_layout_get_box( | 816 | struct wlr_box *output_box = wlr_output_layout_get_box( |
817 | root->output_layout, output->wlr_output); | 817 | root->output_layout, output->wlr_output); |
818 | // We mark the output enabled even if it is switched off by DPMS | 818 | // We mark the output enabled even if it is switched off by DPMS |
819 | config_head->state.enabled = output->enabled; | 819 | config_head->state.enabled = output->current_mode != NULL && output->enabled; |
820 | config_head->state.mode = output->current_mode; | 820 | config_head->state.mode = output->current_mode; |
821 | if (output_box) { | 821 | if (output_box) { |
822 | config_head->state.x = output_box->x; | 822 | config_head->state.x = output_box->x; |