about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--client.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/client.c b/client.c
index 62d4afc..97dd96b 100644
--- a/client.c
+++ b/client.c
@@ -210,7 +210,7 @@ manage(Window w, XWindowAttributes *wa)
 	diff = sw - c->fw;
 	c->fx = sx + (random() % diff ? diff : 1);
 	diff = sh - c->fh;
-	c->fy = sx + (random() % diff ? diff : 1);
+	c->fy = sy + (random() % diff ? diff : 1);
 
 	c->border = 1;
 	c->proto = getproto(c->win);