about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--main.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/main.c b/main.c
index 6f60c9b..6da3ccd 100644
--- a/main.c
+++ b/main.c
@@ -92,19 +92,18 @@ Window root, barwin;
 int
 getproto(Window w)
 {
-	int status, format, protos = 0;
-	int i;
+	int i, format, protos, status;
 	unsigned long extra, res;
 	Atom *protocols, real;
 
-	status = XGetWindowProperty(dpy, w, wmatom[WMProtocols], 0L, 20L,
-			False, XA_ATOM, &real, &format, &res, &extra, (unsigned char **)&protocols);
+	protos = 0;
+	status = XGetWindowProperty(dpy, w, wmatom[WMProtocols], 0L, 20L, False,
+			XA_ATOM, &real, &format, &res, &extra, (unsigned char **)&protocols);
 	if(status != Success || protocols == 0)
 		return protos;
-	for(i = 0; i < res; i++) {
+	for(i = 0; i < res; i++)
 		if(protocols[i] == wmatom[WMDelete])
 			protos |= PROTODELWIN;
-	}
 	free(protocols);
 	return protos;
 }
-06-24 09:16:17 -0700 committer Kartik Agaram <vc@akkartik.com> 2018-06-24 09:18:20 -0700 4266 - space for alloc-id in heap allocations' href='/akkartik/mu/commit/060rewrite_literal_string.cc?h=hlt&id=23d3a02226973f80188e84fa5dcedb14413c5b7f'>23d3a022 ^
8b095f80 ^
387f9c93 ^
ac8acc7b ^
8b095f80 ^

8b095f80 ^

8b095f80 ^



bd5d3936 ^

639922e8 ^
8b095f80 ^

d8509b41 ^
8b095f80 ^
c442a5ad ^
8b095f80 ^
8b095f80 ^
6c96a437 ^
8b095f80 ^

6c96a437 ^
78c50205 ^
8b095f80 ^

d559f68b ^
3c4c9c08 ^
8b095f80 ^









8b095f80 ^
2badd89a ^

6c96a437 ^
2badd89a ^
6c96a437 ^
2badd89a ^

6c96a437 ^
2badd89a ^




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