view.c
changeset 433 a6b8994af164
parent 430 1e8aba00964e
child 436 b3659c3c5dab
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;