about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAnselm R. Garbe <arg@10kloc.org>2006-09-12 09:46:19 +0200
committerAnselm R. Garbe <arg@10kloc.org>2006-09-12 09:46:19 +0200
commitcbfc69e310e41cf0d9d4ae7529856014f2b88822 (patch)
treebfc564f1bbbfaf20e635a5d087be5f82ddbcd8aa
parent1d7674bb22088c5dae110751bd57e75c141e3afb (diff)
downloaddwm-cbfc69e310e41cf0d9d4ae7529856014f2b88822.tar.gz
made introduction comment in dwm.h shorter
-rw-r--r--dwm.h35
1 files changed, 15 insertions, 20 deletions
diff --git a/dwm.h b/dwm.h
index ee7ced1..8e665ea 100644
--- a/dwm.h
+++ b/dwm.h
@@ -6,19 +6,14 @@
  * driven through handling X events. In contrast to other X clients, a window
  * manager like dwm selects for SubstructureRedirectMask on the root window, to
  * receive events about child window appearance and disappearance.  Only one X
- * connection at a time is allowed to select for this event mask by any X
- * server, thus only one window manager instance can be executed at a time.
- * Any attempt to select for SubstructureRedirectMask by any connection after
- * another connection already selected for those events, will result in an
- * error generated by the server. Such errors are reported through calling the
- * current X error handler.
+ * connection at a time is allowed to select for this event mask.
  *
- * Calls to pop an X event from the event queue of the X connection are
+ * Calls to fetch an X event from the event queue of the X connection are
  * blocking.  Due the fact, that dwm reads status text from standard input, a
  * select-driven main loop has been implemented which selects for reads on the
  * X connection and STDIN_FILENO to handle all data smoothly and without
- * busy-loop quirks..  The event handlers of dwm are organized in an array
- * which is accessed whenever a new event has been popped. This allows event
+ * busy-loop quirks. The event handlers of dwm are organized in an array which
+ * is accessed whenever a new event has been fetched. This allows event
  * dispatching in O(1) time.
  *
  * Each child window of the root window is called a client in window manager
@@ -27,20 +22,20 @@
  * history is remembered through a global stack list. Each client contains an
  * array of Bools of the same size as the global tags array to indicate the
  * tags of a client. There are no other data structures to organize the clients
- * in tag lists, because a single global list is most simple. All clients which
- * have at least one tag enabled of the current tags viewed, will be visible on
- * the screen, all other clients are banned to the x-location 2 * screen width.
- * This avoids having additional layers of workspace handling.
+ * in tag lists. All clients which have at least one tag enabled of the current
+ * tags viewed, will be visible on the screen, all other clients are banned to
+ * the x-location x + 2 * screen width.  This avoids having additional layers
+ * of workspace handling.
  *
  * For each client dwm creates a small title window which is resized whenever
- * the WM_NAME or _NET_WM_NAME properties are updated.
+ * the WM_NAME or _NET_WM_NAME properties are updated or the client is resized.
+ * Keys and tagging rules are organized as arrays and defined in the config.h
+ * file. These arrays are kept static in event.o and tag.o respectively,
+ * because no other part of dwm needs access to them.  The current mode is
+ * represented by the arrange function pointer which wether points to dofloat
+ * or dotile. 
  *
- * Keys and tagging rules are organized as arrays as well and defined in the
- * config.h file. These arrays are kept static in event.o and tag.o
- * respectively, because no other part of dwm needs access to them.
- *
- * The current mode is represented by the arrange function pointer which wether
- * points to dofloat or dotile. 
+ * To understand everything else, start with reading main.c:main().
  */
 
 #include "config.h"
ref='/acidbong/suckless/dwm/commit/view.c?h=6.2&id=9d739090750ffb3b3a64e86e2331215b8901c360'>9d73909 ^
c3c94c0 ^
8a6679b ^
c3c94c0 ^
8a6679b ^

346bdea ^
6651dd7 ^
67986e8 ^
6651dd7 ^
346bdea ^


1c2d673 ^

346bdea ^



67986e8 ^

346bdea ^


0915da8 ^

9d73909 ^

5983c00 ^
9d73909 ^
8a6679b ^
ca65478 ^
8a6679b ^









5983c00 ^
c107db5 ^
26157e6 ^
aa13727 ^
aa13727 ^





15abade ^
0925dd5 ^

15abade ^
aa13727 ^



5983c00 ^
acdea31 ^
c107db5 ^
26157e6 ^
7d7cde0 ^

acdea31 ^

10885d3 ^
10885d3 ^
3617893 ^
10885d3 ^
aa13727 ^
ce9a993 ^
aa13727 ^




7d7cde0 ^
2583a7c ^

8fa47ac ^
1c2d673 ^

aa13727 ^
8fa47ac ^
acdea31 ^
10885d3 ^
aa13727 ^
2583a7c ^
acdea31 ^

2583a7c ^
10885d3 ^


acdea31 ^

2583a7c ^
acdea31 ^
2583a7c ^
aa13727 ^

ce9a993 ^
aa13727 ^


6651dd7 ^
15abade ^
0925dd5 ^

15abade ^
aa13727 ^



ca65478 ^
aa13727 ^



aa13727 ^








ca65478 ^
aa13727 ^



aa13727 ^









40bd21c ^
ca65478 ^
40bd21c ^







6499fc4 ^
ca65478 ^
ec85fdd ^

2506003 ^
0915da8 ^

ec85fdd ^
cff951c ^
6499fc4 ^

1c1d09f ^
6499fc4 ^
14d05e7 ^
6499fc4 ^

1c1d09f ^
6499fc4 ^
14d05e7 ^
6499fc4 ^
5983c00 ^
6499fc4 ^

aa13727 ^
6b25d06 ^
aa13727 ^

67986e8 ^
c60de1a ^

aa13727 ^
c60de1a ^
69b738c ^


aa13727 ^
7225c99 ^




69b738c ^
7225c99 ^

69b738c ^

aa13727 ^
7225c99 ^
aa13727 ^





ca65478 ^
b5159df ^
aa13727 ^
5983c00 ^
aa13727 ^




ca65478 ^
aa13727 ^





9d73909 ^
5983c00 ^
fee8df6 ^


ca65478 ^
aa13727 ^




9d73909 ^
5983c00 ^
aa13727 ^


ca65478 ^
daae3bb ^



924a088 ^
5983c00 ^
daae3bb ^


ca65478 ^
ec85fdd ^

d800ec0 ^


d800ec0 ^
346bdea ^
d800ec0 ^

0915da8 ^

ec85fdd ^
cff951c ^
aa13727 ^
0915da8 ^
f18ed61 ^
0d0e8bd ^
d22abee ^




8a6679b ^
5983c00 ^
aa13727 ^
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
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315