comparison client.c @ 103:130d49140341

and another fix...
author arg@10ksloc.org
date Wed, 19 Jul 2006 13:30:18 +0200
parents ed2d4eb65f02
children 3a708f113f55
comparison
equal deleted inserted replaced
102:ed2d4eb65f02 103:130d49140341
207 c->fh = c->th = wa->height; 207 c->fh = c->th = wa->height;
208 c->bh = bh; 208 c->bh = bh;
209 209
210 diff = sw - c->fw; 210 diff = sw - c->fw;
211 c->fx = random() % (diff ? diff : 1); 211 c->fx = random() % (diff ? diff : 1);
212 diff = sh - c->fh; 212 diff = sh - c->fh - bh;
213 c->fy = random() % (diff ? diff : 1); 213 c->fy = random() % (diff ? diff : 1);
214 214
215 c->border = 1; 215 c->border = 1;
216 c->proto = getproto(c->win); 216 c->proto = getproto(c->win);
217 setsize(c); 217 setsize(c);