about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--layout.c6
1 files changed, 3 insertions, 3 deletions
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));
'/akkartik/mu/commit/display.mu?h=hlt&id=b6fa632e2f46467c76c7fb39c731cb17e8558ee0'>b6fa632e ^
bc643692 ^

6a0f71b9 ^
bc643692 ^
12d73ee8 ^
6a0f71b9 ^
0012c703 ^
6a0f71b9 ^
0012c703 ^
6a0f71b9 ^
0012c703 ^
6a0f71b9 ^
0012c703 ^
6a0f71b9 ^
290fe117 ^
54d48b25 ^
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25