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.
This commit is contained in:
Brian Ashworth 2018-12-10 02:42:06 -05:00 committed by emersion
parent b61a936c80
commit 6acbe84fdd
1 changed files with 2 additions and 0 deletions

View File

@ -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();