summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeonardo Hernández Hernández <leohdz172@proton.me>2024-01-24 12:12:09 -0600
committerLeonardo Hernández Hernández <leohdz172@proton.me>2024-01-24 12:12:09 -0600
commit4043fc3093a73174cb63653ba9e742b4738f2ee5 (patch)
tree4257255b706ed9e35deaaa0d5a5b1cb2eae60740
parentb3f33e91479d795436b2c6937d58754eaf18192e (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
-rw-r--r--dwl.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/dwl.c b/dwl.c
index a4e4983..b70d818 100644
--- a/dwl.c
+++ b/dwl.c
@@ -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));