From: Anselm R Garbe Date: Fri, 26 Jun 2009 15:41:27 +0000 (+0100) Subject: tag fix X-Git-Url: https://jasonwoof.com/gitweb/?p=dwm.git;a=commitdiff_plain;h=b9dee2c6f172478b7a652cdf9d074ee0bd9acddc tag fix --- 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) { detach(c); detachstack(c); 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); attachstack(c); - m->sel = c; - for(c = selmon->stack; c && !ISVISIBLE(c); c = c->snext); - selmon->sel = c; + focus(NULL); arrange(); break; }