From 9dfaea2f79f9987fdd68744ff92d213056ed9b75 Mon Sep 17 00:00:00 2001 From: Guido Cella Date: Thu, 22 Oct 2026 13:29:56 +0200 Subject: [PATCH] call updatemons() when createmon() leaves an output disabled This lets you enable it later. Fixes afbafd5. --- dwl.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dwl.c b/dwl.c index 22bbc5c..1e6c423 100644 --- a/dwl.c +++ b/dwl.c @@ -1263,8 +1263,10 @@ createmon(struct wl_listener *listener, void *data) */ m->scene_output = wlr_scene_output_create(scene, wlr_output); - if (!wlr_output->enabled) + if (!wlr_output->enabled) { + updatemons(NULL, NULL); return; + } if (m->m.x == -1 && m->m.y == -1) wlr_output_layout_add_auto(output_layout, wlr_output);