about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAnselm R Garbe <garbeam@gmail.com>2008-09-07 09:53:59 +0100
committerAnselm R Garbe <garbeam@gmail.com>2008-09-07 09:53:59 +0100
commit83abfc05eb5a1e6ee762ce2921d9d5270e40c9ee (patch)
treeb6327c013f5541de534eb4d684e6a73a7c3eb4aa
parent862b0d541d76fb350bff36a2fef5f6ab02625d02 (diff)
downloaddwm-83abfc05eb5a1e6ee762ce2921d9d5270e40c9ee.tar.gz
applied XGetWMNormalHints fix
-rw-r--r--dwm.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/dwm.c b/dwm.c
index 965d1e3..dd39fe1 100644
--- a/dwm.c
+++ b/dwm.c
@@ -1590,7 +1590,9 @@ updatesizehints(Client *c) {
 	long msize;
 	XSizeHints size;
 
-	XGetWMNormalHints(dpy, c->win, &size, &msize);
+	if(!XGetWMNormalHints(dpy, c->win, &size, &msize))
+		/* size is uninitialized, ensure that size.flags aren't used */
+		size.flags = PSize; 
 	if(size.flags & PBaseSize) {
 		c->basew = size.base_width;
 		c->baseh = size.base_height;
e the previous revision' href='/akspecs/ranger/blame/test/tc_ui.py?h=v1.9.3&id=9fbe3adac3c0a15a778721b3fc72c789c125b2b8'>^
1159f9ec ^






















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