Xinqi Bao's Git
projects
/
dwm.git
/ diff
summary
|
log
|
commit
|
diff
|
tree
raw
|
patch
| inline |
side by side
(parent:
a82e7b7
)
fixing zoom
author
Anselm R. Garbe <
[email protected]
>
Tue, 5 Sep 2006 15:10:48 +0000
(17:10 +0200)
committer
Anselm R. Garbe <
[email protected]
>
Tue, 5 Sep 2006 15:10:48 +0000
(17:10 +0200)
view.c
diff
|
blob
|
history
diff --git
a/view.c
b/view.c
index
c005a33
..
d61d0de
100644
(file)
--- a/
view.c
+++ b/
view.c
@@
-317,9
+317,10
@@
zoom(Arg *arg)
if(!sel || sel->isfloat || n < 2 || (arrange != dotile) || maximized)
return;
- if((c = sel) == getnext(clients))
- if(!(c = getnext(c->next)))
- return;
+ if((c = sel) == getnext(clients))
+ for(c = getnext(c->next); c && c->isfloat; c = getnext(c->next));
+ if(!c)
+ return;
detach(c);
c->next = clients;
clients->prev = c;