Xinqi Bao's Git
projects
/
dwm.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
raw
|
inline
| side by side
allowing swap() for first master client
[dwm.git]
/
view.c
diff --git
a/view.c
b/view.c
index
ffa22a1
..
f2e4040
100644
(file)
--- a/
view.c
+++ b/
view.c
@@
-260,14
+260,14
@@
zoom(Arg *arg) {
for(n = 0, c = nexttiled(clients); c; c = nexttiled(c->next))
n++;
for(n = 0, c = nexttiled(clients); c; c = nexttiled(c->next))
n++;
- c = sel;
- if(arrange != dofloat) {
-
detach(c)
;
- if(clients)
- clients->prev = c;
- c
->next = clients
;
-
clients = c
;
-
focus(c)
;
-
arrange(
);
- }
+ if((c = sel) == nexttiled(clients))
+ if(!(c = nexttiled(c->next)))
+
return
;
+ detach(c);
+ if(clients)
+ c
lients->prev = c
;
+
c->next = clients
;
+
clients = c
;
+
focus(c
);
+ arrange();
}
}