applied Sanders patch
authorAnselm R. Garbe <arg@suckless.org>
Mon, 28 May 2007 13:05:47 +0000 (15:05 +0200)
committerAnselm R. Garbe <arg@suckless.org>
Mon, 28 May 2007 13:05:47 +0000 (15:05 +0200)
client.c

index 040dd15..f3d31cb 100644 (file)
--- a/client.c
+++ b/client.c
@@ -305,8 +305,8 @@ togglefloating(const char *arg) {
        if(!sel || lt->arrange == floating)
                return;
        sel->isfloating = !sel->isfloating;
-       if(sel->isfloating && sel->isfixed)
-               resize(sel, sel->x, sel->y, sel->minw, sel->minh, True);
+       if(sel->isfloating)
+               resize(sel, sel->x, sel->y, sel->w, sel->h, True);
        lt->arrange();
 }