JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
applied anydots remark of togglefloating()
[dwm.git] / client.c
index 72e5c32..3e9b239 100644 (file)
--- a/client.c
+++ b/client.c
@@ -304,7 +304,7 @@ void
 togglefloating(const char *arg) {
        if(!sel || lt->arrange == floating)
                return;
-       sel->isfloating = !sel->isfloating;
+       sel->isfloating = !sel->isfloating || sel->isfixed;
        lt->arrange();
 }
 
@@ -389,7 +389,6 @@ updatetitle(Client *c) {
 
 void
 unmanage(Client *c) {
-       Client *nc;
        XWindowChanges wc;
 
        wc.border_width = c->oldborder;