summaryrefslogtreecommitdiffstats
path: root/client.c
diff options
context:
space:
mode:
Diffstat (limited to 'client.c')
-rw-r--r--client.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/client.c b/client.c
index af2c249..62d4afc 100644
--- a/client.c
+++ b/client.c
@@ -192,6 +192,7 @@ lower(Client *c)
192void 192void
193manage(Window w, XWindowAttributes *wa) 193manage(Window w, XWindowAttributes *wa)
194{ 194{
195 int diff;
195 Client *c; 196 Client *c;
196 XSetWindowAttributes twa; 197 XSetWindowAttributes twa;
197 Window trans; 198 Window trans;
@@ -205,6 +206,12 @@ manage(Window w, XWindowAttributes *wa)
205 c->bw = c->fw = c->tw = wa->width; 206 c->bw = c->fw = c->tw = wa->width;
206 c->fh = c->th = wa->height; 207 c->fh = c->th = wa->height;
207 c->bh = bh; 208 c->bh = bh;
209
210 diff = sw - c->fw;
211 c->fx = sx + (random() % diff ? diff : 1);
212 diff = sh - c->fh;
213 c->fy = sx + (random() % diff ? diff : 1);
214
208 c->border = 1; 215 c->border = 1;
209 c->proto = getproto(c->win); 216 c->proto = getproto(c->win);
210 setsize(c); 217 setsize(c);