aboutsummarylogtreecommitdiffstats
path: root/dwm.c
diff options
context:
space:
mode:
authorAnselm R Garbe2009-06-30 19:45:25 +0100
committerAnselm R Garbe2009-06-30 19:45:25 +0100
commit09e1db32863fda2bfe6a3e83117340b657267328 (patch)
tree877370d863806f88ef34cb32e8a24a7639354d60 /dwm.c
parent3bae30f31c95938e43158f1461537d54563e6640 (diff)
downloadaur-09e1db32863fda2bfe6a3e83117340b657267328.tar.gz
hotfix
Diffstat (limited to 'dwm.c')
-rw-r--r--dwm.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/dwm.c b/dwm.c
index 229062d9e862..c47887b10360 100644
--- a/dwm.c
+++ b/dwm.c
@@ -600,14 +600,14 @@ detach(Client *c) {
void
detachstack(Client *c) {
- Client **tc;
+ Client **tc, *t;
for(tc = &c->mon->stack; *tc && *tc != c; tc = &(*tc)->snext);
*tc = c->snext;
if(c == c->mon->sel) {
- for(*tc = c->mon->stack; *tc && !ISVISIBLE((*tc)); *tc = (*tc)->snext);
- c->mon->sel = *tc;
+ for(t = c->mon->stack; t && !ISVISIBLE(t); t = t->snext);
+ c->mon->sel = t;
}
}