diff options
| author | Anselm R. Garbe <arg@10kloc.org> | 2006-09-29 18:21:02 +0200 |
|---|---|---|
| committer | Anselm R. Garbe <arg@10kloc.org> | 2006-09-29 18:21:02 +0200 |
| commit | e0f64e63db654330bf4219a25b8989a72123d661 (patch) | |
| tree | f4d8bfab1ac02f69488a2c32ede2eb51148b82e1 /client.c | |
| parent | added symbols for different modes (diff) | |
| download | dwm-e0f64e63db654330bf4219a25b8989a72123d661.tar.gz dwm-e0f64e63db654330bf4219a25b8989a72123d661.zip | |
applied ality's hardcode-0 patches
Diffstat (limited to 'client.c')
| -rw-r--r-- | client.c | 10 |
1 files changed, 5 insertions, 5 deletions
| @@ -216,10 +216,10 @@ manage(Window w, XWindowAttributes *wa) { | |||
| 216 | 216 | ||
| 217 | if(c->x + c->w + 2 * BORDERPX > sw) | 217 | if(c->x + c->w + 2 * BORDERPX > sw) |
| 218 | c->x = sw - c->w - 2 * BORDERPX; | 218 | c->x = sw - c->w - 2 * BORDERPX; |
| 219 | if(c->x < 0) | 219 | if(c->x < sx) |
| 220 | c->x = 0; | 220 | c->x = sx; |
| 221 | if(c->y + c->h + 2 * BORDERPX > sh) | 221 | if(c->y + c->h + 2 * BORDERPX > sh) |
| 222 | c->y = sh - c->h - 2; | 222 | c->y = sh - c->h - 2 * BORDERPX; |
| 223 | if(c->h != sh && c->y < bh) | 223 | if(c->h != sh && c->y < bh) |
| 224 | c->y = bh; | 224 | c->y = bh; |
| 225 | 225 | ||
| @@ -285,8 +285,8 @@ resize(Client *c, Bool sizehints, Corner sticky) { | |||
| 285 | c->y = bottom - c->h; | 285 | c->y = bottom - c->h; |
| 286 | 286 | ||
| 287 | /* offscreen appearance fixes */ | 287 | /* offscreen appearance fixes */ |
| 288 | if(c->x + c->w < 0) | 288 | if(c->x + c->w < sx) |
| 289 | c->x = 0; | 289 | c->x = sx; |
| 290 | if(c->y + c->h < bh) | 290 | if(c->y + c->h < bh) |
| 291 | c->y = bh; | 291 | c->y = bh; |
| 292 | if(c->x > sw) | 292 | if(c->x > sw) |
