From babccfe6dcf3f5d591fe5f1f7ca1171b03ada68e Mon Sep 17 00:00:00 2001 From: save196 Date: Sat, 4 Apr 2026 11:34:38 +0300 Subject: [PATCH] Preserve asleep disabled outputs in output config --- dwl.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/dwl.c b/dwl.c index 2e63c8c..f0aa4cf 100644 --- a/dwl.c +++ b/dwl.c @@ -2862,10 +2862,13 @@ updatemons(struct wl_listener *listener, void *data) /* First remove from the layout the disabled monitors */ wl_list_for_each(m, &mons, link) { - if (m->wlr_output->enabled || m->asleep) + if (m->wlr_output->enabled) continue; config_head = wlr_output_configuration_head_v1_create(config, m->wlr_output); config_head->state.enabled = 0; + if (m->asleep) + continue; + /* Remove this output from the layout to avoid cursor enter inside it */ wlr_output_layout_remove(output_layout, m->wlr_output); closemon(m);