From: Anselm R Garbe Date: Tue, 30 Jun 2009 18:45:25 +0000 (+0100) Subject: hotfix X-Git-Url: https://jasonwoof.com/gitweb/?p=dwm.git;a=commitdiff_plain;h=25947bcfdbef9e9bd937be0e07437c67c037516c hotfix --- 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; } }