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 */
void
togglefloat(Arg *arg) {
- if (!sel)
+ if (!sel || arrange == dofloat)
return;
sel->isfloat = !sel->isfloat;
arrange();