aboutsummaryrefslogtreecommitdiffstats
path: root/dwm.c
diff options
context:
space:
mode:
authorAnselm R Garbe <anselm@garbe.us>2009-06-30 19:45:25 +0100
committerAnselm R Garbe <anselm@garbe.us>2009-06-30 19:45:25 +0100
commit25947bcfdbef9e9bd937be0e07437c67c037516c (patch)
tree6bfaba849f8703ac606e46e3adde7562f83a2673 /dwm.c
parent1ddfc571ae90b842446b0524f2a38c74868bb326 (diff)
downloaddwm-25947bcfdbef9e9bd937be0e07437c67c037516c.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 229062d..c47887b 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;
}
}
remember that computers suck.