yet another typo fix
authorarg@10ksloc.org
Wed, 19 Jul 2006 13:29:45 +0200
changeset 102 ed2d4eb65f02
parent 101 17c526ee321c
child 103 130d49140341
yet another typo fix
client.c
--- a/client.c	Wed Jul 19 13:24:58 2006 +0200
+++ b/client.c	Wed Jul 19 13:29:45 2006 +0200
@@ -208,9 +208,9 @@
 	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);