Commit 0fb1842

arg@10ksloc.org <unknown>
2006-07-19 07:29:45
yet another typo fix
1 parent f522930
Changed files (1)
client.c
@@ -208,9 +208,9 @@ manage(Window w, XWindowAttributes *wa)
 	c->bh = bh;
 
 	diff = sw - c->fw;
-	c->fx = sx + (random() % diff ? diff : 1);
+	c->fx = random() % (diff ? diff : 1);
 	diff = sh - c->fh;
-	c->fy = sy + (random() % diff ? diff : 1);
+	c->fy = random() % (diff ? diff : 1);
 
 	c->border = 1;
 	c->proto = getproto(c->win);