do not arrange monitor if it's disabled (wlroots!4520)

This causes us to send negative values to xdg-configures (e.g a bug in our end)

References: https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/4520
This commit is contained in:
Leonardo Hernández Hernández 2024-01-24 12:12:09 -06:00
parent b3f33e9147
commit 4043fc3093
No known key found for this signature in database
GPG Key ID: E538897EE11B9624

4
dwl.c
View File

@ -460,6 +460,10 @@ void
arrange(Monitor *m)
{
Client *c;
if (!m->wlr_output->enabled)
return;
wl_list_for_each(c, &clients, link) {
if (c->mon == m) {
wlr_scene_node_set_enabled(&c->scene->node, VISIBLEON(c, m));