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
(cherry picked from commit 4043fc3093a73174cb63653ba9e742b4738f2ee5)
This commit is contained in:
Leonardo Hernández Hernández 2024-01-24 12:12:09 -06:00
parent 26d7c9689f
commit 433385f7f1
Failed to generate hash of commit

4
dwl.c
View file

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