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;
 }
ame/cpp/012run?h=hlt&id=79a7ad4f8c67f7de7d2e478aa7c62d39f8f62f6f'>^
a26cc359 ^
a26cc359 ^

6f5d7864 ^





df8bb4c3 ^



6f5d7864 ^


1228ec73 ^








9fc64bbc ^

781f2462 ^
1228ec73 ^


9fc64bbc ^

1228ec73 ^
6f5d7864 ^

1228ec73 ^
c4980fc3 ^
1228ec73 ^



6f5d7864 ^
1228ec73 ^
6f5d7864 ^
1228ec73 ^
df8bb4c3 ^
c4980fc3 ^
c7c822b2 ^
c1a50c82 ^
42b31beb ^
c7c822b2 ^


9fc64bbc ^

c1a50c82 ^
781f2462 ^
9cf71627 ^


6f5d7864 ^
9fc64bbc ^
c4980fc3 ^
6f5d7864 ^
9fc64bbc ^

cae5461b ^
916ae8f5 ^
cae5461b ^
a26cc359 ^



b291f85b ^





cae5461b ^



b291f85b ^
fe67d47a ^
b291f85b ^




cae5461b ^

c1a50c82 ^
9fc64bbc ^





eaa75c87 ^
d160a8e1 ^
fe67d47a ^
eaa75c87 ^


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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122