summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dwm.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/dwm.c b/dwm.c
index b54ccd4..6459512 100644
--- a/dwm.c
+++ b/dwm.c
@@ -1502,6 +1502,7 @@ tagmon(const Arg *arg) {
detach(c);
detachstack(c);
c->mon = m;
+ c->tags = selmon->seltags; /* assign tags of target monitor */
attach(c);
attachstack(c);
m->sel = c;