summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnselm R. Garbe <arg@10kloc.org>2006-08-29 09:25:14 +0200
committerAnselm R. Garbe <arg@10kloc.org>2006-08-29 09:25:14 +0200
commit5056bb952ddd9d667d2897ab09324ef7ce1596ea (patch)
tree1ec104a9cf800e6f5dc0d9458c175f9b80187b5e
parentadded attach/detach functions which don't attach at the begin of list, but at... (diff)
downloaddwm-5056bb952ddd9d667d2897ab09324ef7ce1596ea.tar.gz
dwm-5056bb952ddd9d667d2897ab09324ef7ce1596ea.zip
fix client position in list also on tag and toggletag
Diffstat (limited to '')
-rw-r--r--tag.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/tag.c b/tag.c
index a3dc6ab..7bc4da0 100644
--- a/tag.c
+++ b/tag.c
@@ -120,6 +120,8 @@ tag(Arg *arg)
120 sel->tags[i] = False; 120 sel->tags[i] = False;
121 sel->tags[arg->i] = True; 121 sel->tags[arg->i] = True;
122 settitle(sel); 122 settitle(sel);
123 detach(sel);
124 attach(sel);
123 if(!isvisible(sel)) 125 if(!isvisible(sel))
124 arrange(NULL); 126 arrange(NULL);
125 else 127 else
@@ -139,6 +141,8 @@ toggletag(Arg *arg)
139 if(i == ntags) 141 if(i == ntags)
140 sel->tags[arg->i] = True; 142 sel->tags[arg->i] = True;
141 settitle(sel); 143 settitle(sel);
144 detach(sel);
145 attach(sel);
142 if(!isvisible(sel)) 146 if(!isvisible(sel))
143 arrange(NULL); 147 arrange(NULL);
144 else 148 else