diff options
| author | Anselm R Garbe <garbeam@gmail.com> | 2008-04-01 15:46:00 +0100 |
|---|---|---|
| committer | Anselm R Garbe <garbeam@gmail.com> | 2008-04-01 15:46:00 +0100 |
| commit | 6cf73e706ac8748e2e1734faad532ca3918e56c2 (patch) | |
| tree | f0078f02fa641e3753f5125dca175ef7cc2e224f | |
| parent | removed uneccessary line (diff) | |
| download | dwm-6cf73e706ac8748e2e1734faad532ca3918e56c2.tar.gz dwm-6cf73e706ac8748e2e1734faad532ca3918e56c2.zip | |
aspects hints seem broken for fullscreen apps
Diffstat (limited to '')
| -rw-r--r-- | dwm.c | 8 |
1 files changed, 5 insertions, 3 deletions
| @@ -1196,9 +1196,9 @@ resize(Client *c, int x, int y, int w, int h, Bool sizehints) { | |||
| 1196 | 1196 | ||
| 1197 | if(sizehints) { | 1197 | if(sizehints) { |
| 1198 | /* set minimum possible */ | 1198 | /* set minimum possible */ |
| 1199 | if (w < 1) | 1199 | if(w < 1) |
| 1200 | w = 1; | 1200 | w = 1; |
| 1201 | if (h < 1) | 1201 | if(h < 1) |
| 1202 | h = 1; | 1202 | h = 1; |
| 1203 | 1203 | ||
| 1204 | /* temporarily remove base dimensions */ | 1204 | /* temporarily remove base dimensions */ |
| @@ -1206,7 +1206,9 @@ resize(Client *c, int x, int y, int w, int h, Bool sizehints) { | |||
| 1206 | h -= c->baseh; | 1206 | h -= c->baseh; |
| 1207 | 1207 | ||
| 1208 | /* adjust for aspect limits */ | 1208 | /* adjust for aspect limits */ |
| 1209 | if (c->minay > 0 && c->maxay > 0 && c->minax > 0 && c->maxax > 0) { | 1209 | if(c->minax != c->maxax && c->minay != c->maxay |
| 1210 | && c->minax > 0 && c->maxax > 0 && c->minay > 0 && c->maxay > 0) | ||
| 1211 | { | ||
| 1210 | if (w * c->maxay > h * c->maxax) | 1212 | if (w * c->maxay > h * c->maxax) |
| 1211 | w = h * c->maxax / c->maxay; | 1213 | w = h * c->maxax / c->maxay; |
| 1212 | else if (w * c->minay < h * c->minax) | 1214 | else if (w * c->minay < h * c->minax) |
