comparison view.c @ 433:a6b8994af164

small fix
author Anselm R. Garbe <arg@10kloc.org>
date Wed, 06 Sep 2006 10:03:21 +0200
parents 1e8aba00964e
children b3659c3c5dab
comparison
equal deleted inserted replaced
432:0f94ee451f6c 433:a6b8994af164
39 } 39 }
40 40
41 static Client * 41 static Client *
42 nexttiled(Client *c) 42 nexttiled(Client *c)
43 { 43 {
44 for(c = getnext(c->next); c && c->isfloat; c = getnext(c->next)); 44 for(c = getnext(c); c && c->isfloat; c = getnext(c->next));
45 return c; 45 return c;
46 } 46 }
47 47
48 /* extern */ 48 /* extern */
49 49
323 n++; 323 n++;
324 if(!sel || sel->isfloat || n < 2 || (arrange != dotile) || maximized) 324 if(!sel || sel->isfloat || n < 2 || (arrange != dotile) || maximized)
325 return; 325 return;
326 326
327 if((c = sel) == nexttiled(clients)) 327 if((c = sel) == nexttiled(clients))
328 if(!(c = nexttiled(c))) 328 if(!(c = nexttiled(c->next)))
329 return; 329 return;
330 detach(c); 330 detach(c);
331 c->next = clients; 331 c->next = clients;
332 clients->prev = c; 332 clients->prev = c;
333 clients = c; 333 clients = c;