diff options
author | Brian Ashworth <bosrsf04@gmail.com> | 2018-12-10 02:42:06 -0500 |
---|---|---|
committer | emersion <contact@emersion.fr> | 2018-12-10 08:59:24 +0100 |
commit | 6acbe84fdd56fc8a087ce2cc457e4eb0b6c2f4a8 (patch) | |
tree | 6eab6e540ea57d4ab7ba63e0a0828551a700dc96 /sway/desktop | |
parent | Merge pull request #3271 from ianyfan/list-cleanup (diff) | |
download | sway-6acbe84fdd56fc8a087ce2cc457e4eb0b6c2f4a8.tar.gz sway-6acbe84fdd56fc8a087ce2cc457e4eb0b6c2f4a8.tar.zst sway-6acbe84fdd56fc8a087ce2cc457e4eb0b6c2f4a8.zip |
Call wlr_output_enable for disabled new outputs
When a new output is detected and it is disabled by the output config,
call `wlr_output_enable(output->wlr_output, false)` to DPMS off the
output.
Diffstat (limited to 'sway/desktop')
-rw-r--r-- | sway/desktop/output.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sway/desktop/output.c b/sway/desktop/output.c index d649100f..246f4438 100644 --- a/sway/desktop/output.c +++ b/sway/desktop/output.c | |||
@@ -568,6 +568,8 @@ void handle_new_output(struct wl_listener *listener, void *data) { | |||
568 | 568 | ||
569 | if (!oc || oc->enabled) { | 569 | if (!oc || oc->enabled) { |
570 | output_enable(output, oc); | 570 | output_enable(output, oc); |
571 | } else { | ||
572 | wlr_output_enable(output->wlr_output, false); | ||
571 | } | 573 | } |
572 | 574 | ||
573 | transaction_commit_dirty(); | 575 | transaction_commit_dirty(); |