This commit is contained in:
Anselm R. Garbe
2007-08-15 19:27:32 +02:00
parent 8fcc4ff0ae
commit 10d13f01ff
6 changed files with 35 additions and 30 deletions

View File

@ -296,16 +296,6 @@ resize(Client *c, int x, int y, int w, int h, Bool sizehints) {
}
}
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)
@ -316,7 +306,7 @@ unban(Client *c) {
}
void
unmanage(Client *c) {
unmanage(Client *c, long state) {
XWindowChanges wc;
wc.border_width = c->oldborder;
@ -329,7 +319,7 @@ unmanage(Client *c) {
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);