JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
togglefloat should only work in dotile mode (thanks to Sander for this hint)
[dwm.git] / view.c
diff --git a/view.c b/view.c
index 167a1c4..c11e349 100644 (file)
--- a/view.c
+++ b/view.c
@@ -202,7 +202,7 @@ restack(void) {
 
 void
 togglefloat(Arg *arg) {
-       if (!sel)
+       if (!sel || arrange == dofloat)
                return;
        sel->isfloat = !sel->isfloat;
        arrange();