diff options
author | Leonardo Hernández Hernández <leohdz172@proton.me> | 2024-01-24 12:12:09 -0600 |
---|---|---|
committer | Leonardo Hernández Hernández <leohdz172@proton.me> | 2024-01-24 13:36:46 -0600 |
commit | 433385f7f18abb607c4feff6d6c7fa817071a710 (patch) | |
tree | b4ff3c12378b7c03bef27f8b753000d44fa7d8a3 | |
parent | 26d7c9689f6e7eb699f2a63c2093c2a27e411ea3 (diff) |
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)
-rw-r--r-- | dwl.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -458,6 +458,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)); |