|
|
@ -208,9 +208,9 @@ manage(Window w, XWindowAttributes *wa)
|
|
|
|
c->bh = bh;
|
|
|
|
c->bh = bh;
|
|
|
|
|
|
|
|
|
|
|
|
diff = sw - c->fw;
|
|
|
|
diff = sw - c->fw;
|
|
|
|
c->fx = sx + (random() % diff ? diff : 1);
|
|
|
|
c->fx = random() % (diff ? diff : 1);
|
|
|
|
diff = sh - c->fh;
|
|
|
|
diff = sh - c->fh;
|
|
|
|
c->fy = sy + (random() % diff ? diff : 1);
|
|
|
|
c->fy = random() % (diff ? diff : 1);
|
|
|
|
|
|
|
|
|
|
|
|
c->border = 1;
|
|
|
|
c->border = 1;
|
|
|
|
c->proto = getproto(c->win);
|
|
|
|
c->proto = getproto(c->win);
|
|
|
|