comparison client.c @ 251:5c72602fe587

simplified unmanage
author Anselm R.Garbe <arg@10ksloc.org>
date Fri, 11 Aug 2006 08:47:55 +0200
parents a9392d33865a
children 3692c9324977
comparison
equal deleted inserted replaced
250:a9392d33865a 251:5c72602fe587
436 c->prev->next = c->next; 436 c->prev->next = c->next;
437 if(c->next) 437 if(c->next)
438 c->next->prev = c->prev; 438 c->next->prev = c->prev;
439 if(c == clients) 439 if(c == clients)
440 clients = c->next; 440 clients = c->next;
441 if(sel == c) { 441 if(sel == c)
442 sel = getnext(c->next); 442 sel = getnext(clients);
443 if(!sel)
444 sel = getprev(c->prev);
445 if(!sel)
446 sel = clients;
447 }
448 free(c->tags); 443 free(c->tags);
449 free(c); 444 free(c);
450 445
451 XSync(dpy, False); 446 XSync(dpy, False);
452 XSetErrorHandler(xerror); 447 XSetErrorHandler(xerror);