-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathrequests.proto
1826 lines (1586 loc) · 30.8 KB
/
requests.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
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
# 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)
NAMESPACE core
REQUESTS
UNKNOWN
CreateWindow
ChangeWindowAttributes
GetWindowAttributes RESPONDS
DestroyWindow
DestroySubwindows
ChangeSaveSet
ReparentWindow
MapWindow /*8*/
MapSubwindows
UnmapWindow
UnmapSubwindows
ConfigureWindow
CirculateWindow
GetGeometry RESPONDS
QueryTree RESPONDS
InternAtom RESPONDS SPECIAL
GetAtomName RESPONDS SPECIAL
ChangeProperty
DeleteProperty
GetProperty RESPONDS /* 20*/
ListProperties RESPONDS
SetSelectionOwner
GetSelectionOwner RESPONDS
ConvertSelection
SendEvent
GrabPointer RESPONDS
UngrabPointer
GrabButton
UngrabButton
ChangeActivePointerGrab /* 30 */
GrabKeyboard RESPONDS
UngrabKeyboard
GrabKey
UngrabKey
AllowEvents
GrabServer
UngrabServer
QueryPointer RESPONDS
GetMotionEvents RESPONDS
TranslateCoordinates RESPONDS /*40*/
WarpPointer
SetInputFocus
GetInputFocus RESPONDS
QueryKeymap RESPONDS
OpenFont
CloseFont
QueryFont RESPONDS
QueryTextExtents RESPONDS
ListFonts RESPONDS
ListFontsWithInfo RESPONDS SPECIAL
SetFontPath
GetFontPath RESPONDS
CreatePixmap
FreePixmap
CreateGC
ChangeGC
CopyGC
SetDashes
SetClipRectangles
FreeGC /*60*/
ClearArea
CopyArea
CopyPlane
PolyPoint
PolyLine
PolySegment
PolyRectangle
PolyArc
FillPoly
PolyFillRectangle
PolyFillArc
PutImage
GetImage RESPONDS
PolyText8
PolyText16
ImageText8
ImageText16
CreateColormap
FreeColormap
CopyColormapAndFree
InstallColormap
UninstallColormap
ListInstalledColormaps RESPONDS
AllocColor RESPONDS
AllocNamedColor RESPONDS
AllocColorCells RESPONDS
AllocColorPlanes RESPONDS
FreeColors
StoreColors
StoreNamedColor
QueryColors RESPONDS
LookupColor RESPONDS
CreateCursor
CreateGlyphCursor
FreeCursor
RecolorCursor
QueryBestSize RESPONDS
QueryExtension RESPONDS SPECIAL
ListExtensions RESPONDS
ChangeKeyboardMapping /*100*/
GetKeyboardMapping RESPONDS
ChangeKeyboardControl
GetKeyboardControl RESPONDS
Bell
ChangePointerControl
GetPointerControl RESPONDS
SetScreenSaver
GetScreenSaver RESPONDS
ChangeHosts
ListHosts RESPONDS
SetAccessControl
SetCloseDownMode
KillClient
RotateProperties
ForceScreenSaver /*115*/
SetPointerMapping RESPONDS
GetPointerMapping RESPONDS
SetModifierMapping RESPONDS
GetModifierMapping RESPONDS
UNKNOWN /*120*/
UNKNOWN
UNKNOWN
UNKNOWN
UNKNOWN
UNKNOWN
UNKNOWN
NoOperation /*127*/
END
CONSTANTS function
0 Clear
1 And
2 AndReverse
3 Copy
4 AndInverted
5 NoOp
6 Xor
7 Or
8 Nor
9 Equiv
10 Invert
11 OrReverse
12 CopyInverted
13 OrInverted
14 Nand
15 Set
END
CONSTANTS line_style
0 Solid
1 OnOffDash
2 DoubleDash
END
CONSTANTS cap_style
0 NotLast
1 Butt
2 Round
3 Projecting
END
CONSTANTS join_style
0 Miter
1 Round
2 Bevel
END
CONSTANTS fill_style
0 Solid
1 Tiled
2 Stippled
3 OpaqueStippled
END
CONSTANTS fill_rule
0 EvenOdd
1 Winding
END
CONSTANTS subwindow_mode
0 ClipByChildren
1 IncludeInferiors
END
TYPE SubwindowMode ENUM8 subwindow_mode
CONSTANTS arc_mode
0 Chord
1 PieSlice
END
CONSTANTS insert_delete
0 Insert
1 Delete
END
CONSTANTS windowclass
0 CopyFromParent
1 InputOutput
2 InputOnly
END
CONSTANTS copyfromparent
0 CopyFromParent
END
CONSTANTS store
0 NotUseful
1 WhenMapped
2 Always
END
CONSTANTS bitgravity
0 Forget
1 NorthWest
2 North
3 NorthEast
4 West
5 Center
6 East
7 SouthWest
8 South
9 SouthEast
10 Static
END
CONSTANTS wingravity
0 Unmap
1 NorthWest
2 North
3 NorthEast
4 West
5 Center
6 East
7 SouthWest
8 South
9 SouthEast
10 Static
END
TYPE WINGRAVITY ENUM8 wingravity
TYPE BITGRAVITY ENUM8 bitgravity
CONSTANTS mapstate
0 Unmapped
1 Unviewable
2 Viewable
END
CONSTANTS none
0 None
END
CONSTANTS nonerelative
0 None
1 ParentRelative
END
CONSTANTS any
0 any
END
BITMASK setofevent
0x00000001 KeyPress
0x00000002 KeyRelease
0x00000004 ButtonPress
0x00000008 ButtonRelease
0x00000010 EnterWindow
0x00000020 LeaveWindow
0x00000040 PointerMotion
0x00000080 PointerMotionHint
0x00000100 Button1Motion
0x00000200 Button2Motion
0x00000400 Button3Motion
0x00000800 Button4Motion
0x00001000 Button5Motion
0x00002000 ButtonMotion
0x00004000 KeymapState
0x00008000 Exposure
0x00010000 VisibilityChange
0x00020000 StructureNotify
0x00040000 ResizeRedirect
0x00080000 SubstructureNotify
0x00100000 SubstructureRedirect
0x00200000 FocusChange
0x00400000 PropertyChange
0x00800000 ColormapChange
0x01000000 OwnerGrabButton
END
TYPE SETofEVENT BITMASK32 setofevent
TYPE SETofDEVICEEVENT SETofEVENT
TYPE SETofPOINTEREVENT SETofEVENT
BITMASK setofkeybutmask
0x0001 Shift
0x0002 Lock
0x0004 Control
0x0008 Mod1
0x0010 Mod2
0x0020 Mod3
0x0040 Mod4
0x0080 Mod5
0x0100 Button1
0x0200 Button2
0x0400 Button3
0x0800 Button4
0x1000 Button5
0x8000 AnyModifier
END
TYPE SETofKEYBUTMASK BITMASK16 setofkeybutmask
TYPE SETofKEYMASK SETofKEYBUTMASK
CONSTANTS bool
0 false
1 true
END
TYPE BOOL ENUM8 bool
CONSTANTS circulate
0 RaiseLowest
1 LowerHighest
END
CONSTANTS change_mode
0 Replace
1 Prepend
2 Append
END
CONSTANTS curtime
0 CurrentTime
END
CONSTANTS choosewindow
0 PointerWindow
1 InputFocus
END
CONSTANTS synmode
0 Synchronous
1 Asynchronous
END
CONSTANTS grabsuccess
0 Success
1 AlreadyGrabbed
2 InvalidTime
3 NotViewable
4 Frozen
END
CONSTANTS button
0 "any button"
1 "left button"
2 "middle button"
3 "right button"
END
TYPE BUTTON CARD8 constants button
CONSTANTS allowevents
0 AsyncPointer
1 SyncPointer
2 ReplayPointer
3 AsyncKeyboard
4 SyncKeyboard
5 ReplayKeyboard
6 AsyncBoth
7 SyncBoth
END
CONSTANTS revertto
0 None
1 PointerRoot
2 Parent
3 FollowKeyboard
END
CONSTANTS noneroot
0 None
1 PointerRoot
END
BITMASK copygcvalues
0x00000001 function
0x00000002 plane-mask
0x00000004 foreground
0x00000008 background
0x00000010 line-width
0x00000020 line-style
0x00000040 cap-style
0x00000080 join-style
0x00000100 fill-style
0x00000200 fill-rule
0x00000400 tile
0x00000800 stipple
0x00001000 tile-stipple-x-origin
0x00002000 tile-stipple-y-origin
0x00004000 font
0x00008000 subwindow-mode
0x00010000 graphics-exposures
0x00020000 clip-x-origin
0x00040000 clip-y-origin
0x00080000 clip-mask
0x00100000 dash-offset
0x00200000 dashes
0x00400000 arc-mode
END
CONSTANTS direction
0 LeftToRight
1 RightToLeft
END
CONSTANTS rect_ordering
0 UnSorted
1 YSorted
2 YXSorted
3 YXBanded
END
CONSTANTS coordinate_mode
0 Origin
1 Previous
END
CONSTANTS shape
0 Complex
1 Nonconvex
2 Convex
END
CONSTANTS bitmap_format
0 Bitmap
1 XYPixmap
2 ZPixmap
END
CONSTANTS alloc
0 None
1 All
END
BITMASK doredgreenblue
0x01 red
0x02 green
0x04 blue
END
CONSTANTS sizeclass
0 Cursor
1 Tile
2 Stipple
END
CONSTANTS nyd
0 No
1 Yes
2 Default
END
CONSTANTS insertdelete
0 Insert
1 Delete
END
CONSTANTS family
0 Internet
1 DECnet
2 Chaos
END
CONSTANTS disabledenabled
0 Disabled
1 Enabled
END
CONSTANTS disableenable
0 Disable
1 Enable
END
CONSTANTS closemode
0 Destroy
1 RetainPermanent
2 RetainTemporary
END
CONSTANTS alltemporary
0 AllTemporary
END
CONSTANTS resetactivate
0 Reset
1 Activate
END
CONSTANTS successbusyfailed
0 Success
1 Busy
2 Failed
END
CONSTANTS stack_mode
0 Above
1 Below
2 TopIf
3 BottomIf
4 Opposite
END
TYPE WINDOW CARD32
TYPE VISUALID CARD32
TYPE COLORMAP CARD32
TYPE PIXMAP CARD32
TYPE CURSOR CARD32
TYPE COUNT8 STORE8
TYPE COUNT16 STORE16
TYPE COUNT32 STORE32
templateREQUEST Empty
END
VALUES WindowAttributes
0x00000001 background-pixmap PIXMAP constants nonerelative
0x00000002 background-pixel CARD32
0x00000004 border-pixmap PIXMAP constants copyfromparent
0x00000008 border-pixel CARD32
0x00000010 bit-gravity ENUM8 bitgravity
0x00000020 win-gravity ENUM8 wingravity
0x00000040 backing-store ENUM8 store
0x00000080 backing-planes CARD32
0x00000100 backing-pixel CARD32
0x00000200 override-redirect BOOL
0x00000400 save-under BOOL
0x00000800 event-mask SETofEVENT
0x00001000 do-not-propagate-mask SETofDEVICEEVENT
0x00002000 colormap COLORMAP constants copyfromparent
0x00004000 cursor CURSOR constants none
END
REQUEST CreateWindow
1 depth CARD8
4 window WINDOW
8 parent WINDOW
12 x INT16
14 y INT16
16 width UINT16
18 height UINT16
20 border-width UINT16
22 class ENUM16 windowclass
24 visual VISUALID constants copyfromparent
28 value-mask STORE32
32 value-list LISTofWindowAttributes
END
REQUEST ChangeWindowAttributes
4 window WINDOW
8 value-mask STORE32
12 value-list LISTofWindowAttributes
END
# This is used for all UNKNOWN or unsupported requests:
templateREQUEST unknown
0 opcode CARD8
1 opcode2 CARD8
4 unparsed-data LISTofCARD8
END
# reply to an UNKNOWN, UNSUPPORTED or unexpected reply
templateRESPONSE unknown
0 data1 CARD8
1 data2 CARD8
8 unparsed-data LISTofCARD8
END
templateREQUEST WINDOW
4 window WINDOW
END
REQUEST GetWindowAttributes ALIASES WINDOW
RESPONSE GetWindowAttributes
1 backing-store ENUM8 store
8 visual VISUALID
12 class ENUM16 windowclass
14 bit-gravity BITGRAVITY
15 win-gravity WINGRAVITY
16 backing-planes CARD32
20 backing-pixel CARD32
24 save-under BOOL
25 map-is-installed BOOL
26 map-state ENUM8 mapstate
27 override-redirect BOOL
28 colormap COLORMAP constants none
32 all-event-masks SETofEVENT
36 your-event-mask SETofEVENT
38 do-not-propagate-mask BITMASK16 setofevent
40 unused CARD16
END
REQUEST ChangeSaveSet
1 mode ENUM8 insert_delete
4 window WINDOW
END
REQUEST ReparentWindow
4 window WINDOW
8 parent WINDOW
12 x INT16
14 y INT16
END
VALUES ConfigureWindow
0x0001 x INT16
0x0002 y INT16
0x0004 width UINT16
0x0008 height UINT16
0x0010 border-width UINT16
0x0020 sibling WINDOW
0x0040 stack-mode ENUM8 stack_mode
END
REQUEST ConfigureWindow
4 window WINDOW
8 value-mask STORE16
12 values LISTofConfigureWindow
END
REQUEST CirculateWindow
1 direction ENUM8 circulate
4 window WINDOW
END
TYPE DRAWABLE CARD32
REQUEST GetGeometry
4 drawable DRAWABLE
END
RESPONSE GetGeometry
1 depth CARD8
8 root WINDOW
12 x INT16
14 y INT16
16 width UINT16
18 height UINT16
20 border-width UINT16
END
REQUEST QueryTree ALIASES WINDOW
TYPE LISTofWINDOW LISTofCARD32
RESPONSE QueryTree
8 root WINDOW
12 parent WINDOW constants none
16 count COUNT16
32 children LISTofWINDOW
END
REQUEST InternAtom
1 only-if-exists BOOL
4 length COUNT16
8 name STRING8
END
RESPONSE InternAtom
8 atom ATOM constants none
END
templateREQUEST Atom
4 atom ATOM
END
REQUEST GetAtomName ALIASES Atom
RESPONSE GetAtomName
8 length COUNT16
32 name STRING8
END
REQUEST ChangeProperty
1 mode ENUM8 change_mode
4 window WINDOW
8 property ATOM
12 type ATOM
16 format FORMAT8
20 length COUNT32
IF 12 ATOM "STRING"
24 data STRING8
ELSEIF 12 ATOM "ATOM"
24 data LISTofATOM
ELSE
24 data LISTofFormat
END
REQUEST DeleteProperty
4 window WINDOW
8 property ATOM
END
REQUEST GetProperty
1 delete BOOL
4 window WINDOW
8 property ATOM
12 type ATOM constants any
16 long-offset CARD32
20 long-length CARD32
END
RESPONSE GetProperty
1 format FORMAT8
8 type ATOM constants none
12 bytes-after CARD32
16 length COUNT32
IF 8 ATOM "STRING"
32 data STRING8
ELSEIF 8 ATOM "ATOM"
32 data LISTofATOM
ELSE
32 data LISTofFormat
END
REQUEST ListProperties ALIASES WINDOW
RESPONSE ListProperties
8 count COUNT16
32 atoms LISTofATOM
END
TYPE TIMESTAMP CARD32
REQUEST SetSelectionOwner
4 owner WINDOW constants none
8 selection ATOM
12 time TIMESTAMP constants curtime
END
REQUEST GetSelectionOwner ALIASES Atom
RESPONSE GetSelectionOwner
8 owner WINDOW constants none
END
REQUEST ConvertSelection
4 requestor WINDOW
8 selection ATOM
12 target ATOM
16 property ATOM constants none
20 time TIMESTAMP constants curtime
END
REQUEST SendEvent
1 propagate BOOL
4 destination WINDOW constants choosewindow
8 event-mask SETofEVENT
12 event EVENT
END
REQUEST GrabPointer
1 owner-events BOOL
4 grab-window WINDOW
8 event-mask SETofPOINTEREVENT
10 pointer-mode ENUM8 synmode
11 keyboard-mode ENUM8 synmode
12 confine-to WINDOW constants none
16 cursor CURSOR constants none
20 time TIMESTAMP constants curtime
END
RESPONSE GrabPointer
1 status ENUM8 grabsuccess
END
templateREQUEST Timestamp
4 time TIMESTAMP constants curtime
END
REQUEST UngrabPointer ALIASES Timestamp
REQUEST GrabButton
1 owner-events BOOL
4 grab-window WINDOW
8 event-mask SETofPOINTEREVENT
10 pointer-mode ENUM8 synmode
11 keyboard-mode ENUM8 synmode
12 confine-to WINDOW constants none
16 cursor CURSOR constants none
20 button BUTTON
22 modifiers SETofKEYMASK
END
REQUEST UngrabButton
1 button BUTTON
4 grab-window WINDOW
8 modifiers SETofKEYMASK
END
REQUEST ChangeActivePointerGrab
4 cursor CURSOR constants none
8 time TIMESTAMP constants curtime
12 event-mask SETofPOINTEREVENT
END
TYPE SYNMODE CARD8 constants synmode
REQUEST GrabKeyboard
4 grab-window WINDOW
8 time TIMESTAMP constants curtime
12 pointer-mode SYNMODE
13 keyboard-mode SYNMODE
END
RESPONSE GrabKeyboard ALIASES GrabPointer
REQUEST UngrabKeyboard ALIASES Timestamp
TYPE KEYCODE CARD8
REQUEST GrabKey
1 owner-events BOOL
4 grab-window WINDOW
8 modifiers SETofKEYMASK
10 key KEYCODE constants any
11 pointer-mode SYNMODE
12 keyboard-mode SYNMODE
END
REQUEST UngrabKey
1 key KEYCODE constants any
4 grab-window WINDOW
8 modifiers SETofKEYMASK
END
REQUEST AllowEvents
1 mode ENUM8 allowevents
5 time TIMESTAMP constants curtime
END
REQUEST QueryPointer ALIASES WINDOW
RESPONSE QueryPointer
1 same-screen BOOL
8 root WINDOW
12 child WINDOW constants none
16 root-x INT16
18 root-y INT16
20 win-x INT16
22 win-y INT16
24 mask SETofKEYBUTMASK
END
REQUEST GetMotionEvents
4 window WINDOW
8 start TIMESTAMP constants curtime
12 stop TIMESTAMP constants curtime
END
LIST TIMECOORD length 8
0 time TIMESTAMP
4 x INT16
6 y INT16
END
RESPONSE GetMotionEvents
8 count COUNT32
32 events LISTofTIMECOORD
END
REQUEST TranslateCoordinates
4 src-window WINDOW
8 dst-window WINDOW
12 src-x INT16
14 src-y INT16
END
RESPONSE TranslateCoordinates
1 same-screen BOOL
8 child WINDOW constants none
12 dst-x INT16
14 dst-y INT16
END
REQUEST WarpPointer
4 src-window WINDOW constants none
8 dst-window WINDOW constants none
12 src-x INT16
14 src-y INT16
16 src-width UINT16
18 src-height UINT16
20 dst-x INT16
22 dst-y INT16
END
REQUEST SetInputFocus
1 revert-to ENUM8 revertto
4 focus WINDOW constants noneroot
8 time TIMESTAMP constants curtime
END
REQUEST GetInputFocus ALIASES Empty
RESPONSE GetInputFocus
1 revert-to ENUM8 revertto
8 focus WINDOW constants noneroot
END