comparison client.c @ 639:226ef912c093

renamed updatesize into updatesizehints (thx to Sander for this hint)
author arg@mig29
date Mon, 01 Jan 2007 19:10:31 +0100
parents d6fbb669fef2
children e90bf387bf6f
comparison
equal deleted inserted replaced
638:276238ad9516 639:226ef912c093
154 c->x = c->tx = wa->x; 154 c->x = c->tx = wa->x;
155 c->y = c->ty = wa->y; 155 c->y = c->ty = wa->y;
156 c->w = c->tw = wa->width; 156 c->w = c->tw = wa->width;
157 c->h = wa->height; 157 c->h = wa->height;
158 c->th = bh; 158 c->th = bh;
159 updatesize(c); 159 updatesizehints(c);
160 if(c->x + c->w + 2 * BORDERPX > sw) 160 if(c->x + c->w + 2 * BORDERPX > sw)
161 c->x = sw - c->w - 2 * BORDERPX; 161 c->x = sw - c->w - 2 * BORDERPX;
162 if(c->x < sx) 162 if(c->x < sx)
163 c->x = sx; 163 c->x = sx;
164 if(c->y + c->h + 2 * BORDERPX > sh) 164 if(c->y + c->h + 2 * BORDERPX > sh)
254 else 254 else
255 XMoveResizeWindow(dpy, c->twin, c->tx + 2 * sw, c->ty, c->tw, c->th); 255 XMoveResizeWindow(dpy, c->twin, c->tx + 2 * sw, c->ty, c->tw, c->th);
256 } 256 }
257 257
258 void 258 void
259 updatesize(Client *c) { 259 updatesizehints(Client *c) {
260 long msize; 260 long msize;
261 XSizeHints size; 261 XSizeHints size;
262 262
263 if(!XGetWMNormalHints(dpy, c->win, &size, &msize) || !size.flags) 263 if(!XGetWMNormalHints(dpy, c->win, &size, &msize) || !size.flags)
264 size.flags = PSize; 264 size.flags = PSize;