diff options
Diffstat (limited to 'sway/config/output.c')
-rw-r--r-- | sway/config/output.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/sway/config/output.c b/sway/config/output.c index 6fb29ded..0985b0e8 100644 --- a/sway/config/output.c +++ b/sway/config/output.c | |||
@@ -510,10 +510,6 @@ bool apply_output_config(struct output_config *oc, struct sway_output *output) { | |||
510 | struct wlr_output_state pending = {0}; | 510 | struct wlr_output_state pending = {0}; |
511 | queue_output_config(oc, output, &pending); | 511 | queue_output_config(oc, output, &pending); |
512 | 512 | ||
513 | if (!oc || oc->power != 0) { | ||
514 | output->current_mode = pending.mode; | ||
515 | } | ||
516 | |||
517 | sway_log(SWAY_DEBUG, "Committing output %s", wlr_output->name); | 513 | sway_log(SWAY_DEBUG, "Committing output %s", wlr_output->name); |
518 | if (!wlr_output_commit_state(wlr_output, &pending)) { | 514 | if (!wlr_output_commit_state(wlr_output, &pending)) { |
519 | // Failed to commit output changes, maybe the output is missing a CRTC. | 515 | // Failed to commit output changes, maybe the output is missing a CRTC. |