From 0bb569913bda54372e80962a2f27dc6d9262a646 Mon Sep 17 00:00:00 2001 From: Sevz17 Date: Wed, 16 Jun 2021 11:57:32 -0500 Subject: [PATCH] assign tags even if the monitor is the same this solves the last commit problem --- dwl.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dwl.c b/dwl.c index 97fee38..a8f0699 100644 --- a/dwl.c +++ b/dwl.c @@ -1934,6 +1934,9 @@ setmon(Client *c, Monitor *m, unsigned int newtags) { Monitor *oldmon = c->mon; + if (m) + c->tags = newtags ? newtags : m->tagset[m->seltags]; /* assign tags of target monitor */ + if (oldmon == m) return; c->mon = m; @@ -1947,7 +1950,6 @@ setmon(Client *c, Monitor *m, unsigned int newtags) /* Make sure window actually overlaps with the monitor */ applybounds(c, &m->m); wlr_surface_send_enter(client_surface(c), m->wlr_output); - c->tags = newtags ? newtags : m->tagset[m->seltags]; /* assign tags of target monitor */ arrange(m); } focusclient(focustop(selmon), 1);