aboutsummaryrefslogtreecommitdiffstats
path: root/client.c
diff options
context:
space:
mode:
authorAnselm R. Garbe <garbeam@gmail.com>2007-08-15 19:27:32 +0200
committerAnselm R. Garbe <garbeam@gmail.com>2007-08-15 19:27:32 +0200
commit10d13f01ff764ba0e875adf5d2b83c49aa08d148 (patch)
treecad3a1162879cdf53d3a6ac7f97a025d4a65ff40 /client.c
parent8fcc4ff0ae2b20f9605370cee02ebcda50f8777c (diff)
downloaddwm-10d13f01ff764ba0e875adf5d2b83c49aa08d148.tar.gz
fififi
Diffstat (limited to 'client.c')
-rw-r--r--client.c14
1 files changed, 2 insertions, 12 deletions
diff --git a/client.c b/client.c
index ed19d9c..22408f2 100644
--- a/client.c
+++ b/client.c
@@ -297,16 +297,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)
return;
@@ -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);