about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--client.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/client.c b/client.c
index 1844713..282ad53 100644
--- a/client.c
+++ b/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
7c208824c06'>e5c11a51 ^
f5465e12 ^
cdf28227 ^
f5465e12 ^
e6056999 ^

4a39d12d ^


4c4d325c ^
4a39d12d ^



f5465e12 ^

4a39d12d ^

e6056999 ^

^


608a7fa8 ^
ba6621b5 ^


25ad969f ^
c762564b ^
5a2cb154 ^
608a7fa8 ^



c762564b ^
9a7e1a0f ^
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90