diff options
| author | Anselm R.Garbe <arg@10ksloc.org> | 2006-08-18 13:40:34 +0200 |
|---|---|---|
| committer | Anselm R.Garbe <arg@10ksloc.org> | 2006-08-18 13:40:34 +0200 |
| commit | 2eebebf26243a4a80d646c85db2b9c9ebd168743 (patch) | |
| tree | f1fb14e92880d64c03be9c426285b678dbbf81ad | |
| parent | made a new client position strategy similiar to that one proposed by Sander, ... (diff) | |
| download | dwm-2eebebf26243a4a80d646c85db2b9c9ebd168743.tar.gz dwm-2eebebf26243a4a80d646c85db2b9c9ebd168743.zip | |
applied Sanders patch
Diffstat (limited to '')
| -rw-r--r-- | client.c | 8 |
1 files changed, 2 insertions, 6 deletions
| @@ -203,11 +203,11 @@ manage(Window w, XWindowAttributes *wa) | |||
| 203 | c->border = 0; | 203 | c->border = 0; |
| 204 | setsize(c); | 204 | setsize(c); |
| 205 | 205 | ||
| 206 | if(c->x + c->w > sw) | 206 | if(c->x + c->w + 2 > sw) |
| 207 | c->x = sw - c->w - 2; | 207 | c->x = sw - c->w - 2; |
| 208 | if(c->x < 0) | 208 | if(c->x < 0) |
| 209 | c->x = 0; | 209 | c->x = 0; |
| 210 | if(c->y + c->h > sh) | 210 | if(c->y + c->h + 2 > sh) |
| 211 | c->y = sh - c->h - 2; | 211 | c->y = sh - c->h - 2; |
| 212 | if(c->h != sh && c->y < bh) | 212 | if(c->h != sh && c->y < bh) |
| 213 | c->y = bh; | 213 | c->y = bh; |
| @@ -293,10 +293,6 @@ resize(Client *c, Bool sizehints, Corner sticky) | |||
| 293 | if(c->maxh && c->h > c->maxh) | 293 | if(c->maxh && c->h > c->maxh) |
| 294 | c->h = c->maxh; | 294 | c->h = c->maxh; |
| 295 | } | 295 | } |
| 296 | if(c->x > sw) /* might happen on restart */ | ||
| 297 | c->x = sw - c->w; | ||
| 298 | if(c->y > sh) | ||
| 299 | c->y = sh - c->h; | ||
| 300 | if(sticky == TopRight || sticky == BotRight) | 296 | if(sticky == TopRight || sticky == BotRight) |
| 301 | c->x = right - c->w; | 297 | c->x = right - c->w; |
| 302 | if(sticky == BotLeft || sticky == BotRight) | 298 | if(sticky == BotLeft || sticky == BotRight) |
