summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--dwm.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/dwm.c b/dwm.c
index 26ec20b..2588153 100644
--- a/dwm.c
+++ b/dwm.c
@@ -1502,12 +1502,10 @@ tagmon(const Arg *arg) {
1502 detach(c); 1502 detach(c);
1503 detachstack(c); 1503 detachstack(c);
1504 c->mon = m; 1504 c->mon = m;
1505 c->tags = m->seltags; /* assign tags of target monitor */ 1505 c->tags = m->tagset[m->seltags]; /* assign tags of target monitor */
1506 attach(c); 1506 attach(c);
1507 attachstack(c); 1507 attachstack(c);
1508 m->sel = c; 1508 focus(NULL);
1509 for(c = selmon->stack; c && !ISVISIBLE(c); c = c->snext);
1510 selmon->sel = c;
1511 arrange(); 1509 arrange();
1512 break; 1510 break;
1513 } 1511 }