call updatemons() when createmon() leaves an output disabled

This lets you enable it later.

Fixes afbafd5.
This commit is contained in:
Guido Cella
2026-10-22 13:31:04 +02:00
parent afbafd53ab
commit 9dfaea2f79
+3 -1
View File
@@ -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);