ソースを参照

yet another typo fix

arg@10ksloc.org 19 年 前
コミット
0fb1842fd0
1 ファイル変更2 行追加2 行削除
  1. 2 2
      client.c

+ 2 - 2
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);