comparison client.c @ 93:c498da7520c7

added heretag command which allows to tag a client of a foreign tag with current tag
author Anselm R. Garbe <garbeam@wmii.de>
date Tue, 18 Jul 2006 11:38:31 +0200
parents 92f0d50475be
children 6efe82c775c9
comparison
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;