summaryrefslogtreecommitdiffstats
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
parentfix of resize (thanks Sander for the hint!) (diff)
downloaddwm-10d13f01ff764ba0e875adf5d2b83c49aa08d148.tar.gz
dwm-10d13f01ff764ba0e875adf5d2b83c49aa08d148.zip
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) {
297} 297}
298 298
299void 299void
300togglefloating(const char *arg) {
301 if(!sel || isfloating())
302 return;
303 sel->isfloating = !sel->isfloating;
304 if(sel->isfloating)
305 resize(sel, sel->x, sel->y, sel->w, sel->h, True);
306 arrange();
307}
308
309void
310unban(Client *c) { 300unban(Client *c) {
311 if(!c->isbanned) 301 if(!c->isbanned)
312 return; 302 return;
@@ -316,7 +306,7 @@ unban(Client *c) {
316} 306}
317 307
318void 308void
319unmanage(Client *c) { 309unmanage(Client *c, long state) {
320 XWindowChanges wc; 310 XWindowChanges wc;
321 311
322 wc.border_width = c->oldborder; 312 wc.border_width = c->oldborder;
@@ -329,7 +319,7 @@ unmanage(Client *c) {
329 if(sel == c) 319 if(sel == c)
330 focus(NULL); 320 focus(NULL);
331 XUngrabButton(dpy, AnyButton, AnyModifier, c->win); 321 XUngrabButton(dpy, AnyButton, AnyModifier, c->win);
332 setclientstate(c, WithdrawnState); 322 setclientstate(c, state);
333 free(c->tags); 323 free(c->tags);
334 free(c); 324 free(c);
335 XSync(dpy, False); 325 XSync(dpy, False);