changeset 102:ed2d4eb65f02

yet another typo fix
author arg@10ksloc.org
date Wed, 19 Jul 2006 13:29:45 +0200
parents 17c526ee321c
children 130d49140341
files client.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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);