Got questions, comments, patches, etc.?
Contact Jason Woofenden
gitweb
/
dwm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
e9cfae7
)
allowing swap() for first master client
author
Anselm R. Garbe
<arg@suckless.org>
Fri, 5 Jan 2007 21:00:15 +0000
(22:00 +0100)
committer
Anselm R. Garbe
<arg@suckless.org>
Fri, 5 Jan 2007 21:00:15 +0000
(22:00 +0100)
view.c
patch
|
blob
|
history
diff --git
a/view.c
b/view.c
index
503f1c2
..
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) && c != nexttiled(clients)) {
- 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)
+ clients->prev = c;
+ c->next = clients;
+ clients = c;
+ focus(c);
+ arrange();
}
}