comparison view.c @ 661:4b8096176bbe

prevent pop() if first sel == nexttiled(clients)
author Anselm R. Garbe <arg@suckless.org>
date Fri, 05 Jan 2007 21:56:57 +0100
parents 4c6d27f03773
children 3e0f11a44293
comparison
equal deleted inserted replaced
660:4c6d27f03773 661:4b8096176bbe
259 } 259 }
260 for(n = 0, c = nexttiled(clients); c; c = nexttiled(c->next)) 260 for(n = 0, c = nexttiled(clients); c; c = nexttiled(c->next))
261 n++; 261 n++;
262 262
263 c = sel; 263 c = sel;
264 if(arrange != dofloat) { 264 if((arrange != dofloat) && c != nexttiled(clients)) {
265 detach(c); 265 detach(c);
266 if(clients) 266 if(clients)
267 clients->prev = c; 267 clients->prev = c;
268 c->next = clients; 268 c->next = clients;
269 clients = c; 269 clients = c;