projects
/
suckless
/
dwm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1ddfc57
)
hotfix
author
Anselm R Garbe
<anselm@garbe.us>
Tue, 30 Jun 2009 18:45:25 +0000
(19:45 +0100)
committer
Anselm R Garbe
<anselm@garbe.us>
Tue, 30 Jun 2009 18:45:25 +0000
(19:45 +0100)
dwm.c
patch
|
blob
|
history
diff --git
a/dwm.c
b/dwm.c
index 229062d9e8625dd821acef506f8021b03720e80c..c47887b1036022e9afc25a5dc0a75854f9180efc 100644
(file)
--- 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
;
}
}