From 6acbe84fdd56fc8a087ce2cc457e4eb0b6c2f4a8 Mon Sep 17 00:00:00 2001 From: Brian Ashworth Date: Mon, 10 Dec 2018 02:42:06 -0500 Subject: 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. --- sway/desktop/output.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'sway') 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(); -- cgit v1.2.3-54-g00ecf