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 5c65148..c11e349 100644 (file)
--- a/view.c
+++ b/view.c
@@ -99,7 +99,7 @@ dotile(void) {
                                c->x += mpx;
                                c->w = stackw - 2 * BORDERPX;
                                if(th > bh) {
-                                       c->y = way + (i - 1) * th;
+                                       c->y += (i - 1) * th;
                                        c->h = th - 2 * BORDERPX;
                                }
                                else /* fallback if th < bh */
@@ -202,7 +202,7 @@ restack(void) {
 
 void
 togglefloat(Arg *arg) {
-       if (!sel)
+       if (!sel || arrange == dofloat)
                return;
        sel->isfloat = !sel->isfloat;
        arrange();