X-Git-Url: https://jasonwoof.com/gitweb/?p=dwm.git;a=blobdiff_plain;f=layout.c;fp=layout.c;h=7a7abae20fc98815da1d93dc548e42c638169a70;hp=20169175c99c1f3b5187edb8d03eb86c064a299a;hb=2cd16097708cf38ab668e9131a60d6dd937f246b;hpb=85c9ebf2fc7d8e531f9b29c78eac70543cf0c832 diff --git a/layout.c b/layout.c index 2016917..7a7abae 100644 --- a/layout.c +++ b/layout.c @@ -43,7 +43,7 @@ tile(void) { sum += spow(vratio, i); mscale = wah / sum; if(vratio >= 1) - mmaxtile = bh > (mscale * spow(vratio, 0)); + mmaxtile = bh > mscale; else mmaxtile = bh > (mscale * spow(vratio, n - 1)); } @@ -55,8 +55,8 @@ tile(void) { sum += spow(vratio, i); sscale = wah / sum; if(vratio >= 1) { - mmaxtile = bh > (mscale * spow(vratio, 0)); - smaxtile = bh > (sscale * spow(vratio, 0)); + mmaxtile = bh > mscale; + smaxtile = bh > sscale; } else { mmaxtile = bh > (mscale * spow(vratio, nmaster - 1));