tag fix b9dee2c6
Anselm R Garbe · 2009-06-26 16:41 1 file(s) · +2 −4
dwm.c +2 −4
1502 1502
			detach(c);
1503 1503
			detachstack(c);
1504 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 1506
			attach(c);
1507 1507
			attachstack(c);
1508 -
			m->sel = c;
1509 -
			for(c = selmon->stack; c && !ISVISIBLE(c); c = c->snext);
1510 -
			selmon->sel = c;
1508 +
			focus(NULL);
1511 1509
			arrange();
1512 1510
			break;
1513 1511
		}