about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAnselm R Garbe <garbeam@gmail.com>2009-06-26 16:41:27 +0100
committerAnselm R Garbe <garbeam@gmail.com>2009-06-26 16:41:27 +0100
commitb9dee2c6f172478b7a652cdf9d074ee0bd9acddc (patch)
tree57ba11bbbb9dc59e279df69f8b9cc78a68038cf9
parenta73ff905b04a5f1dab6e0aface03317a81528a95 (diff)
downloaddwm-b9dee2c6f172478b7a652cdf9d074ee0bd9acddc.tar.gz
tag fix
-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) {
 			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;
 		}
ref='#n139'>139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168