fix setmfact animation
@@ -3239,14 +3239,22 @@ void
setmfact(const Arg *arg)
{
float f;
-
+ int tmpanim = 0;
if (!arg || !selmon->lt[selmon->sellt]->arrange)
return;
f = arg->f < 1.0 ? arg->f + selmon->mfact : arg->f - 1.0;
if (f < 0.1 || f > 0.9)
return;
selmon->mfact = selmon->pertag->mfacts[selmon->pertag->curtag] = f;
+
+ if (animated && clientcount() > 2) {
+ tmpanim = 1;
+ animated = 0;
+ }
+
arrange(selmon);
+ if (tmpanim)
+ animated = 1;
}
void
