applied anydots proposal to let togglefloating restore fixed windows
[dwm.git] / client.c
index 72e5c32..040dd15 100644 (file)
--- a/client.c
+++ b/client.c
@@ -305,6 +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);
        lt->arrange();
 }
 
@@ -389,7 +391,6 @@ updatetitle(Client *c) {
 
 void
 unmanage(Client *c) {
-       Client *nc;
        XWindowChanges wc;
 
        wc.border_width = c->oldborder;