From 2a19714e39081bf7ea51351596ac00e8957485ba 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 | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/dwl.c b/dwl.c index fea13ae..a2fdc93 100644 --- a/dwl.c +++ b/dwl.c @@ -452,6 +452,15 @@ 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