client.c
changeset 93 c498da7520c7
parent 81 92f0d50475be
child 94 6efe82c775c9
equal deleted inserted replaced
92:4bee0aa5b286 93:c498da7520c7
    64 	Client *c;
    64 	Client *c;
    65    
    65    
    66 	if(!sel)
    66 	if(!sel)
    67 		return;
    67 		return;
    68 
    68 
    69 	if(!(c = getnext(sel->next)))
    69 	if(!(c = getnext(sel->next, tsel)))
    70 		c = getnext(clients);
    70 		c = getnext(clients, tsel);
    71 	if(c) {
    71 	if(c) {
    72 		higher(c);
    72 		higher(c);
    73 		c->revert = sel;
    73 		c->revert = sel;
    74 		focus(c);
    74 		focus(c);
    75 	}
    75 	}
   408 	Client **l, *c;
   408 	Client **l, *c;
   409 
   409 
   410 	if(!sel)
   410 	if(!sel)
   411 		return;
   411 		return;
   412 
   412 
   413 	if(sel == getnext(clients) && sel->next)  {
   413 	if(sel == getnext(clients, tsel) && sel->next)  {
   414 		if((c = getnext(sel->next)))
   414 		if((c = getnext(sel->next, tsel)))
   415 			sel = c;
   415 			sel = c;
   416 	}
   416 	}
   417 
   417 
   418 	for(l = &clients; *l && *l != sel; l = &(*l)->next);
   418 	for(l = &clients; *l && *l != sel; l = &(*l)->next);
   419 	*l = sel->next;
   419 	*l = sel->next;