thotfix - dwm - [fork] customized build of dwm, the dynamic window manager | |
git clone git://src.adamsgaard.dk/dwm | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
commit 25947bcfdbef9e9bd937be0e07437c67c037516c | |
parent 1ddfc571ae90b842446b0524f2a38c74868bb326 | |
Author: Anselm R Garbe <[email protected]> | |
Date: Tue, 30 Jun 2009 19:45:25 +0100 | |
hotfix | |
Diffstat: | |
M dwm.c | 6 +++--- | |
1 file changed, 3 insertions(+), 3 deletions(-) | |
--- | |
diff --git a/dwm.c b/dwm.c | |
t@@ -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)… | |
- c->mon->sel = *tc; | |
+ for(t = c->mon->stack; t && !ISVISIBLE(t); t = t->snext); | |
+ c->mon->sel = t; | |
} | |
} | |