aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dwl.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/dwl.c b/dwl.c
index 9a7b42e..5ed534e 100644
--- a/dwl.c
+++ b/dwl.c
@@ -496,9 +496,10 @@ arrange(Monitor *m)
{
Client *c;
wl_list_for_each(c, &clients, link)
- wlr_scene_node_set_enabled(c->scene, VISIBLEON(c, c->mon));
+ if (c->mon == m)
+ wlr_scene_node_set_enabled(c->scene, VISIBLEON(c, m));
- if (m->lt[m->sellt]->arrange)
+ if (m && m->lt[m->sellt]->arrange)
m->lt[m->sellt]->arrange(m);
motionnotify(0);
}