mirror of
https://codeberg.org/dwl/dwl.git
synced 2026-11-03 20:02:23 +00:00
call updatemons() when createmon() leaves an output disabled
This lets you enable it later.
Fixes afbafd5.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user