Mercurial > dwm-meillo
comparison client.c @ 105:3e74cc981e9b
refactored Sanders code somewhat
author | arg@10ksloc.org |
---|---|
date | Wed, 19 Jul 2006 13:52:31 +0200 |
parents | 3a708f113f55 |
children | c292574503dd |
comparison
equal
deleted
inserted
replaced
104:3a708f113f55 | 105:3e74cc981e9b |
---|---|
313 *c->h = c->minh; | 313 *c->h = c->minh; |
314 if(c->maxw && *c->w > c->maxw) | 314 if(c->maxw && *c->w > c->maxw) |
315 *c->w = c->maxw; | 315 *c->w = c->maxw; |
316 if(c->maxh && *c->h > c->maxh) | 316 if(c->maxh && *c->h > c->maxh) |
317 *c->h = c->maxh; | 317 *c->h = c->maxh; |
318 if(sticky == TopRight || sticky == BottomRight) | 318 if(sticky == TopRight || sticky == BotRight) |
319 *c->x = right - *c->w; | 319 *c->x = right - *c->w; |
320 if(sticky == BottomLeft || sticky == BottomRight) | 320 if(sticky == BotLeft || sticky == BotRight) |
321 *c->y = bottom - *c->h; | 321 *c->y = bottom - *c->h; |
322 resizetitle(c); | 322 resizetitle(c); |
323 XSetWindowBorderWidth(dpy, c->win, 1); | 323 XSetWindowBorderWidth(dpy, c->win, 1); |
324 XMoveResizeWindow(dpy, c->win, *c->x, *c->y, *c->w, *c->h); | 324 XMoveResizeWindow(dpy, c->win, *c->x, *c->y, *c->w, *c->h); |
325 e.type = ConfigureNotify; | 325 e.type = ConfigureNotify; |