Mercurial > aewl
changeset 517:2b4bd49fc155
applied ality's hardcode-0 patches
author | Anselm R. Garbe <arg@10kloc.org> |
---|---|
date | Fri, 29 Sep 2006 18:21:02 +0200 (2006-09-29) |
parents | e5f8d6ac509c |
children | f35e6c5993ef |
files | client.c |
diffstat | 1 files changed, 5 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/client.c Fri Sep 29 18:08:20 2006 +0200 +++ b/client.c Fri Sep 29 18:21:02 2006 +0200 @@ -216,10 +216,10 @@ if(c->x + c->w + 2 * BORDERPX > sw) c->x = sw - c->w - 2 * BORDERPX; - if(c->x < 0) - c->x = 0; + if(c->x < sx) + c->x = sx; if(c->y + c->h + 2 * BORDERPX > sh) - c->y = sh - c->h - 2; + c->y = sh - c->h - 2 * BORDERPX; if(c->h != sh && c->y < bh) c->y = bh; @@ -285,8 +285,8 @@ c->y = bottom - c->h; /* offscreen appearance fixes */ - if(c->x + c->w < 0) - c->x = 0; + if(c->x + c->w < sx) + c->x = sx; if(c->y + c->h < bh) c->y = bh; if(c->x > sw)