From 6b82c57c1e3de835399803c283e232f2e64adff7 Mon Sep 17 00:00:00 2001 From: Rutherther Date: Sat, 11 May 2024 21:14:07 +0200 Subject: [PATCH] fix: attach client to different monitor for tagrules --- dwl.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/dwl.c b/dwl.c index a0374ef..cd799c9 100644 --- a/dwl.c +++ b/dwl.c @@ -473,6 +473,17 @@ applyrules(Client *c) } } } + + wlr_scene_node_reparent(&c->scene->node, layers[c->isfloating ? LyrFloat : LyrTile]); + + wl_list_for_each(m, &mons, link) { + // tag with different monitor selected by rules + if (m->tagset[m->seltags] & newtags) { + mon = m; + break; + } + } + setmon(c, mon, newtags); } -- 2.48.1