allowing swap() for first master client

This commit is contained in:
Anselm R. Garbe 2007-01-05 22:00:15 +01:00
parent e9cfae7aba
commit 6c767072a3
1 changed files with 10 additions and 10 deletions

6
view.c
View File

@ -260,8 +260,9 @@ zoom(Arg *arg) {
for(n = 0, c = nexttiled(clients); c; c = nexttiled(c->next))
n++;
c = sel;
if((arrange != dofloat) && c != nexttiled(clients)) {
if((c = sel) == nexttiled(clients))
if(!(c = nexttiled(c->next)))
return;
detach(c);
if(clients)
clients->prev = c;
@ -269,5 +270,4 @@ zoom(Arg *arg) {
clients = c;
focus(c);
arrange();
}
}