diff options
| author | Anselm R Garbe <anselm@garbe.us> | 2009-07-18 11:28:31 +0100 |
|---|---|---|
| committer | Anselm R Garbe <anselm@garbe.us> | 2009-07-18 11:28:31 +0100 |
| commit | dfecd4619074e305e2107b5676bd0486bbb78a8c (patch) | |
| tree | c458372090afe2fd8d7ec18e76a2a8979ca0e7da | |
| parent | applied nsz' dwm.1 fixes, thanks Szabolcs! (diff) | |
| parent | removed misleading comment (diff) | |
| download | dwm-dfecd4619074e305e2107b5676bd0486bbb78a8c.tar.gz dwm-dfecd4619074e305e2107b5676bd0486bbb78a8c.zip | |
merge
| -rw-r--r-- | config.mk | 2 | ||||
| -rw-r--r-- | dwm.c | 8 |
2 files changed, 5 insertions, 5 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | # dwm version | 1 | # dwm version |
| 2 | VERSION = 5.6 | 2 | VERSION = 5.7 |
| 3 | 3 | ||
| 4 | # Customize below to fit your system | 4 | # Customize below to fit your system |
| 5 | 5 | ||
| @@ -350,9 +350,9 @@ applysizehints(Client *c, int *x, int *y, int *w, int *h, Bool interact) { | |||
| 350 | /* adjust for aspect limits */ | 350 | /* adjust for aspect limits */ |
| 351 | if(c->mina > 0 && c->maxa > 0) { | 351 | if(c->mina > 0 && c->maxa > 0) { |
| 352 | if(c->maxa < (float)*w / *h) | 352 | if(c->maxa < (float)*w / *h) |
| 353 | *w = *h * c->maxa; | 353 | *w = *h * c->maxa + 0.5; |
| 354 | else if(c->mina < (float)*h / *w) | 354 | else if(c->mina < (float)*h / *w) |
| 355 | *h = *w * c->mina; | 355 | *h = *w * c->mina + 0.5; |
| 356 | } | 356 | } |
| 357 | if(baseismin) { /* increment calculation requires this */ | 357 | if(baseismin) { /* increment calculation requires this */ |
| 358 | *w -= c->basew; | 358 | *w -= c->basew; |
| @@ -1807,8 +1807,8 @@ updatesizehints(Client *c) { | |||
| 1807 | else | 1807 | else |
| 1808 | c->minw = c->minh = 0; | 1808 | c->minw = c->minh = 0; |
| 1809 | if(size.flags & PAspect) { | 1809 | if(size.flags & PAspect) { |
| 1810 | c->mina = (float)size.min_aspect.y / (float)size.min_aspect.x; | 1810 | c->mina = (float)size.min_aspect.y / size.min_aspect.x; |
| 1811 | c->maxa = (float)size.max_aspect.x / (float)size.max_aspect.y; | 1811 | c->maxa = (float)size.max_aspect.x / size.max_aspect.y; |
| 1812 | } | 1812 | } |
| 1813 | else | 1813 | else |
| 1814 | c->maxa = c->mina = 0.0; | 1814 | c->maxa = c->mina = 0.0; |
