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:
parent
b61a936c80
commit
6acbe84fdd
|
@ -568,6 +568,8 @@ void handle_new_output(struct wl_listener *listener, void *data) {
|
||||||
|
|
||||||
if (!oc || oc->enabled) {
|
if (!oc || oc->enabled) {
|
||||||
output_enable(output, oc);
|
output_enable(output, oc);
|
||||||
|
} else {
|
||||||
|
wlr_output_enable(output->wlr_output, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
transaction_commit_dirty();
|
transaction_commit_dirty();
|
||||||
|
|
Loading…
Reference in a new issue