tag fix
authorAnselm R Garbe <garbeam@gmail.com>
Fri, 26 Jun 2009 16:41:27 +0100
changeset 1423 b1845c3d6e4f
parent 1422 f6514f1cdddf
child 1424 499cb1ee2b93
tag fix
dwm.c
--- a/dwm.c	Thu Jun 25 11:17:42 2009 +0100
+++ b/dwm.c	Fri Jun 26 16:41:27 2009 +0100
@@ -1502,12 +1502,10 @@
 			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;
 		}