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;
 }
as E. Dickey <dickey@invisible-island.net> 1997-01-29 21:25:58 -0500 snapshot of project "lynx", label v2_6fm_970129' href='/ingrix/lynx-snapshots/commit/src/GridText.h?id=c3ec4181d988501e4d7116f32c669d5ca69e7060'>c3ec4181 ^
e087f6d4




6bd78b38 ^
fbcb509d ^



6bd78b38 ^


e087f6d4
c3ec4181 ^

8f8c57cc ^
945e8eb6 ^

6bd78b38 ^
e087f6d4

c3ec4181 ^


945e8eb6 ^

57bfc74f ^
945e8eb6 ^



57bfc74f ^







e087f6d4


945e8eb6 ^
e087f6d4





c3ec4181 ^
6bd78b38 ^
945e8eb6 ^
6bd78b38 ^

57bfc74f ^

e087f6d4
c3ec4181 ^
e087f6d4



945e8eb6 ^

e087f6d4

945e8eb6 ^



1d80538b ^

e087f6d4
1d80538b ^



57bfc74f ^
945e8eb6 ^




1d80538b ^


57bfc74f ^



945e8eb6 ^




6bd78b38 ^
e087f6d4


e087f6d4



1d80538b ^


e087f6d4


945e8eb6 ^
e087f6d4
945e8eb6 ^



e087f6d4







57bfc74f ^
cbcc3a1e ^



e087f6d4
945e8eb6 ^





e087f6d4
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
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206