about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAnselm R. Garbe <arg@10kloc.org>2006-10-05 13:47:30 +0200
committerAnselm R. Garbe <arg@10kloc.org>2006-10-05 13:47:30 +0200
commit69408d384d55b69f66ea52f8767eb577a34d9ae2 (patch)
tree596329b242870290468f1065a69b51eb16e15b53
parent4aea423f066170f50390c746260ecd445262c98b (diff)
downloaddwm-69408d384d55b69f66ea52f8767eb577a34d9ae2.tar.gz
simplified dotile(), removed misleading line 1.8
-rw-r--r--view.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/view.c b/view.c
index 61144df..6ca82d1 100644
--- a/view.c
+++ b/view.c
@@ -103,18 +103,19 @@ dofloat(Arg *arg) {
  */
 void
 dotile(Arg *arg) {
-	int i, n, stackw, stackh, tw, th;
-	unsigned int md = ((stackpos == StackBottom ? sh - bh : sw) * master) / 100;
+	unsigned int i, n, md, stackw, stackh, tw, th;
 	Client *c;
 
 	for(n = 0, c = nexttiled(clients); c; c = nexttiled(c->next))
 		n++;
 
 	if(stackpos == StackBottom) {
+		md = ((sh - bh) * master) / 100;
 		stackw = sw;
 		stackh = sh - bh - md;
 	}
 	else {
+		md = (sw * master) / 100;
 		stackw = sw - md;
 		stackh = sh - bh;
 	}
ef='#n124'>124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216