taspects hints seem broken for fullscreen apps - dwm - [fork] customized build … | |
git clone git://src.adamsgaard.dk/dwm | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
commit 6cf73e706ac8748e2e1734faad532ca3918e56c2 | |
parent a520ba3c0baed704e0323494aa7f8a4a464912da | |
Author: Anselm R Garbe <[email protected]> | |
Date: Tue, 1 Apr 2008 15:46:00 +0100 | |
aspects hints seem broken for fullscreen apps | |
Diffstat: | |
M dwm.c | 8 +++++--- | |
1 file changed, 5 insertions(+), 3 deletions(-) | |
--- | |
diff --git a/dwm.c b/dwm.c | |
t@@ -1196,9 +1196,9 @@ resize(Client *c, int x, int y, int w, int h, Bool sizeh… | |
if(sizehints) { | |
/* set minimum possible */ | |
- if (w < 1) | |
+ if(w < 1) | |
w = 1; | |
- if (h < 1) | |
+ if(h < 1) | |
h = 1; | |
/* temporarily remove base dimensions */ | |
t@@ -1206,7 +1206,9 @@ resize(Client *c, int x, int y, int w, int h, Bool sizeh… | |
h -= c->baseh; | |
/* adjust for aspect limits */ | |
- if (c->minay > 0 && c->maxay > 0 && c->minax > 0 && c->maxax >… | |
+ if(c->minax != c->maxax && c->minay != c->maxay | |
+ && c->minax > 0 && c->maxax > 0 && c->minay > 0 && c->maxay > … | |
+ { | |
if (w * c->maxay > h * c->maxax) | |
w = h * c->maxax / c->maxay; | |
else if (w * c->minay < h * c->minax) |