aewl
changeset 662:3e0f11a44293
allowing swap() for first master client
author | Anselm R. Garbe <arg@suckless.org> |
---|---|
date | Fri, 05 Jan 2007 22:00:15 +0100 |
parents | 4b8096176bbe |
children | a876f137a5d3 |
files | view.c |
diffstat | 1 files changed, 10 insertions(+), 10 deletions(-) [+] |
line diff
1.1 --- a/view.c Fri Jan 05 21:56:57 2007 +0100 1.2 +++ b/view.c Fri Jan 05 22:00:15 2007 +0100 1.3 @@ -260,14 +260,14 @@ 1.4 for(n = 0, c = nexttiled(clients); c; c = nexttiled(c->next)) 1.5 n++; 1.6 1.7 - c = sel; 1.8 - if((arrange != dofloat) && c != nexttiled(clients)) { 1.9 - detach(c); 1.10 - if(clients) 1.11 - clients->prev = c; 1.12 - c->next = clients; 1.13 - clients = c; 1.14 - focus(c); 1.15 - arrange(); 1.16 - } 1.17 + if((c = sel) == nexttiled(clients)) 1.18 + if(!(c = nexttiled(c->next))) 1.19 + return; 1.20 + detach(c); 1.21 + if(clients) 1.22 + clients->prev = c; 1.23 + c->next = clients; 1.24 + clients = c; 1.25 + focus(c); 1.26 + arrange(); 1.27 }