-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathevents.proto
451 lines (408 loc) · 8.33 KB
/
events.proto
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
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
# This file is part of "xtrace"
# Copyright (C) 2005 Bernhard R. Link
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
#
# This file is based on the
# X Window System Protocol
# X Consortium Standard
# X Version 11, Release 6.4
#
# Robert W. Scheifler
# X Consortium, Inc.
#
# with the following trademark and copyright notices and acknowlegdgments:
##
## X Window System is a trademark of X Consortium, Inc.
##
## Copyright (C) 1986, 1987, 1988, 1994 X Consortium
##
## Permission is hereby granted, free of charge, to any person
## obtaining a copy of this software and associated documenta-
## tion files (the ``Software''), to deal in the Software with-
## out restriction, including without limitation the rights to
## use, copy, modify, merge, publish, distribute, sublicense,
## and/or sell copies of the Software, and to permit persons to
## whom the Software is furnished to do so, subject to the fol-
## lowing conditions:
##
## The above copyright notice and this permission notice shall
## be included in all copies or substantial portions of the
## Software.
##
## THE SOFTWARE IS PROVIDED ``AS IS'', WITHOUT WARRANTY OF ANY
## KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
## WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PUR-
## POSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE X CONSOR-
## TIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
## WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
## FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE
## OR OTHER DEALINGS IN THE SOFTWARE.
##
## Except as contained in this notice, the name of the X Con-
## sortium shall not be used in advertising or otherwise to
## promote the sale, use or other dealings in this Software
## without prior written authorization from the X Consortium.
##
## Acknowledgments
##
## The primary contributers to the X11 protocol are:
##
## Dave Carver (Digital HPW)
## Branko Gerovac (Digital HPW)
## Jim Gettys (MIT/Project Athena, Digital)
## Phil Karlton (Digital WSL)
## Scott McGregor (Digital SSG)
## Ram Rao (Digital UEG)
## David Rosenthal (Sun)
## Dave Winchell (Digital UEG)
##
## The implementors of initial server who provided useful input
## are:
##
## Susan Angebranndt (Digital)
## Raymond Drewry (Digital)
## Todd Newman (Digital)
##
## The invited reviewers who provided useful input are:
##
## Andrew Cherenson (Berkeley)
## Burns Fisher (Digital)
## Dan Garfinkel (HP)
## Leo Hourvitz (Next)
## Brock Krizan (HP)
## David Laidlaw (Stellar)
## Dave Mellinger (Interleaf)
## Ron Newman (MIT)
## John Ousterhout (Berkeley)
## Andrew Palay (ITC CMU)
## Ralph Swick (MIT)
## Craig Taylor (Sun)
## Jeffery Vroom (Stellar)
##
NEEDS "requests.proto"
NAMESPACE core
EVENTS
UNKNOWN
UNKNOWN
KeyPress
KeyRelease
ButtonPress
ButtonRelease
MotionNotify
EnterNotify
LeaveNotify
FocusIn
FocusOut
KeymapNotify
Expose
GraphicsExposure
NoExposure
VisibilityNotify
CreateNotify
DestroyNotify
UnmapNotify
MapNotify
MapRequest
ReparentNotify
ConfigureNotify
ConfigureRequest
GravityNotify
ResizeRequest
CirculateNotify
CirculateRequest
PropertyNotify
SelectionClear
SelectionRequest
SelectionNotify
ColormapNotify
ClientMessage
MappingNotify
Generic SPECIAL
END
templateEVENT Key
1 keycode KEYCODE
4 time TIMESTAMP
8 root WINDOW
12 event WINDOW
16 child WINDOW constants none
20 root-x INT16
22 root-y INT16
24 event-x INT16
26 event-y INT16
28 state SETofKEYBUTMASK
30 same-screen BOOL
END
EVENT KeyPress ALIASES Key
EVENT KeyRelease ALIASES Key
templateEVENT Button
1 button BUTTON
4 time TIMESTAMP
8 root WINDOW
12 event WINDOW
16 child WINDOW constants none
20 root-x INT16
22 root-y INT16
24 event-x INT16
26 event-y INT16
28 state SETofKEYBUTMASK
30 same-screen BOOL
END
EVENT ButtonPress ALIASES Button
EVENT ButtonRelease ALIASES Button
CONSTANTS normalhint
0 Normal
1 Hint
END
EVENT MotionNotify
1 detail ENUM8 normalhint
4 time TIMESTAMP
8 root WINDOW
12 event WINDOW
16 child WINDOW constants none
20 root-x INT16
22 root-y INT16
24 event-x INT16
26 event-y INT16
28 state SETofKEYBUTMASK
30 same-screen BOOL
END
CONSTANTS enterdetail
0 Ancestor
1 Virtual
2 Inferior
3 Nonlinear
4 NonlinearVirtual
5 Pointer
6 PointerRoot
7 None
END
CONSTANTS grabmode
0 Normal
1 Grab
2 Ungrab
3 WhileGrabbed
END
BITMASK focusscreen
0x01 focus
0x02 same-screen
0xFC unused
END
EVENT EnterNotify
1 detail ENUM8 enterdetail
30 mode ENUM8 grabmode
31 flags BITMASK8 focusscreen
4 time TIMESTAMP
8 root WINDOW
12 event WINDOW
16 child WINDOW constants none
20 root-x INT16
22 root-y INT16
24 event-x INT16
26 event-y INT16
28 state SETofKEYBUTMASK
END
EVENT LeaveNotify ALIASES EnterNotify
EVENT FocusIn
1 detail ENUM8 enterdetail
4 event WINDOW
8 mode ENUM8 grabmode
END
EVENT FocusOut ALIASES FocusIn
EVENT KeymapNotify
1 "keys(0-7 omitted)" LISTofCARD8
END
EVENT Expose
4 window WINDOW
8 x UINT16
10 y UINT16
12 width UINT16
14 height UINT16
16 count CARD16
END
EVENT GraphicsExposure
4 drawable DRAWABLE
8 x UINT16
10 y UINT16
12 width UINT16
13 height UINT16
14 minor-opcode CARD16
18 count CARD16
20 major-opcode CARD8
END
EVENT NoExposure
4 drawable DRAWABLE
8 minor-opcode CARD16
10 major-opcode CARD8
END
CONSTANTS obscure
0 Unobscured
1 PartiallyObscured
2 FullyObscured
END
EVENT VisibilityNotify
4 window WINDOW
8 state ENUM8 obscure
END
EVENT CreateNotify
4 parent WINDOW
8 window WINDOW
12 x INT16
14 y INT16
16 width UINT16
18 height UINT16
20 border-width UINT16
22 override-redirect BOOL
END
EVENT DestroyNotify
4 event WINDOW
8 window WINDOW
END
EVENT UnmapNotify
4 event WINDOW
8 window WINDOW
12 from-configure BOOL
END
EVENT MapNotify
4 event WINDOW
8 window WINDOW
12 override-redirect BOOL
END
EVENT MapRequest
4 parent WINDOW
8 window WINDOW
END
EVENT ReparentNotify
4 event WINDOW
8 window WINDOW
12 parent WINDOW
16 x INT16
18 y INT16
20 override-redirect BOOL
END
EVENT ConfigureNotify
4 event WINDOW
8 window WINDOW
12 above-sibling WINDOW constants none
16 x INT16
18 y INT16
20 width UINT16
22 height UINT16
24 border-width UINT16
26 override-redirect BOOL
END
BITMASK configure_mask
0x0001 x
0x0002 y
0x0004 width
0x0008 height
0x0010 border-width
0x0020 sibling
0x0040 stack-mode
END
EVENT ConfigureRequest
4 parent WINDOW
8 window WINDOW
26 value-mask BITMASK16 configure_mask
1 stack-mode ENUM8 stack_mode
12 sibling WINDOW constants none
16 x INT16
18 y INT16
20 width UINT16
22 height UINT16
24 border-width UINT16
END
EVENT GravityNotify
4 event WINDOW
8 window WINDOW
12 x INT16
14 y INT16
END
EVENT ResizeRequest
4 window WINDOW
8 width UINT16
10 height UINT16
END
CONSTANTS topbottom
0 Top
1 Bottom
END
EVENT CirculateNotify
4 event WINDOW
8 window WINDOW
16 place ENUM8 topbottom
END
EVENT CirculateRequest ALIASES CirculateNotify
CONSTANTS newdeleted
0 NewValue
1 Deleted
END
EVENT PropertyNotify
4 window WINDOW
8 atom ATOM
12 time TIMESTAMP
16 state ENUM8 newdeleted
END
EVENT SelectionClear
4 time TIMESTAMP
8 owner WINDOW
12 selection ATOM
END
EVENT SelectionRequest
4 time TIMESTAMP constants curtime
8 owner WINDOW
12 requestor WINDOW
16 selection ATOM
20 target ATOM
24 property ATOM constants none
END
EVENT SelectionNotify
4 time TIMESTAMP constants curtime
8 requestor WINDOW
12 selection ATOM
16 target ATOM
20 property ATOM constants none
END
CONSTANTS uninstalledinstalled
0 Uninstalled
1 Installed
END
EVENT ColormapNotify
4 window WINDOW
8 colormap COLORMAP constants none
12 new BOOL
13 state ENUM8 uninstalledinstalled
END
EVENT ClientMessage
1 format CARD8
4 window WINDOW
8 type ATOM
12 data LISTofCARD8
END
CONSTANTS modkeypoi
0 Modifier
1 Keyboard
2 Pointer
END
EVENT MappingNotify
4 request ENUM8 modkeypoi
5 first-keycode KEYCODE
6 count CARD8
END
EVENT Generic
1 extension CARD8
4 length UINT32
8 evtype CARD16
10 data LISTofCARD8
END
EOF