diff -r 4f66942cc63b -r d7de5c7bdbe4 client.c --- a/client.c Tue Aug 14 19:38:10 2007 +0200 +++ b/client.c Wed Aug 15 19:27:32 2007 +0200 @@ -297,16 +297,6 @@ } void -togglefloating(const char *arg) { - if(!sel || isfloating()) - return; - sel->isfloating = !sel->isfloating; - if(sel->isfloating) - resize(sel, sel->x, sel->y, sel->w, sel->h, True); - arrange(); -} - -void unban(Client *c) { if(!c->isbanned) return; @@ -316,7 +306,7 @@ } void -unmanage(Client *c) { +unmanage(Client *c, long state) { XWindowChanges wc; wc.border_width = c->oldborder; @@ -329,7 +319,7 @@ if(sel == c) focus(NULL); XUngrabButton(dpy, AnyButton, AnyModifier, c->win); - setclientstate(c, WithdrawnState); + setclientstate(c, state); free(c->tags); free(c); XSync(dpy, False);