pinosaur
/
dwm.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d477fb6
)
yet another cleanup
author
Anselm R Garbe
<garbeam@gmail.com>
Thu, 3 Apr 2008 13:39:19 +0000
(14:39 +0100)
committer
Anselm R Garbe
<garbeam@gmail.com>
Thu, 3 Apr 2008 13:39:19 +0000
(14:39 +0100)
dwm.c
patch
|
blob
|
history
diff --git
a/dwm.c
b/dwm.c
index
91b0149
..
9acf30d
100644
(file)
--- a/
dwm.c
+++ b/
dwm.c
@@
-1191,9
+1191,9
@@
resize(Client *c, int x, int y, int w, int h, Bool sizehints) {
if(c->minax != c->maxax && c->minay != c->maxay
&& c->minax > 0 && c->maxax > 0 && c->minay > 0 && c->maxay > 0)
{
- if
(w * c->maxay > h * c->maxax)
+ if(w * c->maxay > h * c->maxax)
w = h * c->maxax / c->maxay;
- else if
(w * c->minay < h * c->minax)
+ else if(w * c->minay < h * c->minax)
h = w * c->minay / c->minax;
}