aboutsummaryrefslogtreecommitdiff
path: root/sway/desktop
diff options
context:
space:
mode:
authorBrian Ashworth <bosrsf04@gmail.com>2018-12-10 02:42:06 -0500
committeremersion <contact@emersion.fr>2018-12-10 08:59:24 +0100
commit6acbe84fdd56fc8a087ce2cc457e4eb0b6c2f4a8 (patch)
tree6eab6e540ea57d4ab7ba63e0a0828551a700dc96 /sway/desktop
parentb61a936c8060bc4ac4320a5f76fd98b5042e5e41 (diff)
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.c2
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) {
if (!oc || oc->enabled) {
output_enable(output, oc);
+ } else {
+ wlr_output_enable(output->wlr_output, false);
}
transaction_commit_dirty();