This commit is contained in:
Anselm R Garbe 2009-06-26 16:41:27 +01:00
parent a73ff905b0
commit b9dee2c6f1
1 changed files with 2 additions and 4 deletions

6
dwm.c
View File

@ -1502,12 +1502,10 @@ tagmon(const Arg *arg) {
detach(c); detach(c);
detachstack(c); detachstack(c);
c->mon = m; c->mon = m;
c->tags = m->seltags; /* assign tags of target monitor */ c->tags = m->tagset[m->seltags]; /* assign tags of target monitor */
attach(c); attach(c);
attachstack(c); attachstack(c);
m->sel = c; focus(NULL);
for(c = selmon->stack; c && !ISVISIBLE(c); c = c->snext);
selmon->sel = c;
arrange(); arrange();
break; break;
} }