Compare commits
3 Commits
Author | SHA1 | Date | |
---|---|---|---|
93aeaa53c9 | |||
06f9f346e6 | |||
5c48012ad2 |
1
.hgtags
1
.hgtags
@ -40,3 +40,4 @@ d3876aa792923f9a95f7ad0c7f0134533404df35 3.2.2
|
||||
75b1b25fe0d7e29400baf30568153f668324928b 3.6
|
||||
20ec6976cee1fcfee0c2f354ae382ee3f9f68efa 3.6.1
|
||||
baee494346e520f8dee2cee9491b8350064770d2 3.7
|
||||
2ea201354cf016407ea93e1e390d1422940d29b0 3.8
|
||||
|
4
client.c
4
client.c
@ -233,7 +233,7 @@ resize(Client *c, int x, int y, int w, int h, Bool sizehints) {
|
||||
if(w <= 0 || h <= 0)
|
||||
return;
|
||||
if(sizehints) {
|
||||
if(c->minay > 0 && c->maxay && (h - c->baseh) > 0) {
|
||||
if(c->minay > 0 && c->maxay > 0 && (h - c->baseh) > 0) {
|
||||
dx = (float)(w - c->basew);
|
||||
dy = (float)(h - c->baseh);
|
||||
min = (float)(c->minax) / (float)(c->minay);
|
||||
@ -267,6 +267,8 @@ resize(Client *c, int x, int y, int w, int h, Bool sizehints) {
|
||||
if(c->inch)
|
||||
h -= (h - c->baseh) % c->inch;
|
||||
}
|
||||
if(w <= 0 || h <= 0)
|
||||
return;
|
||||
if(w == sw && h == sh)
|
||||
c->border = 0;
|
||||
else
|
||||
|
Reference in New Issue
Block a user