1 int fmtevent(Fmt *fmt);
2 
3 enum {
4 	X_CreateWindow = 1,
5 	X_ChangeWindowAttributes,
6 	X_GetWindowAttributes,
7 	X_DestroyWindow,
8 	X_DestroySubwindows,
9 	X_ChangeSaveSet,
10 	X_ReparentWindow,
11 	X_MapWindow,
12 	X_MapSubwindows,
13 	X_UnmapWindow,
14 	X_UnmapSubwindows,
15 	X_ConfigureWindow,
16 	X_CirculateWindow,
17 	X_GetGeometry,
18 	X_QueryTree,
19 	X_InternAtom,
20 	X_GetAtomName,
21 	X_ChangeProperty,
22 	X_DeleteProperty,
23 	X_GetProperty,
24 	X_ListProperties,
25 	X_SetSelectionOwner,
26 	X_GetSelectionOwner,
27 	X_ConvertSelection,
28 	X_SendEvent,
29 	X_GrabPointer,
30 	X_UngrabPointer,
31 	X_GrabButton,
32 	X_UngrabButton,
33 	X_ChangeActivePointerGrab,
34 	X_GrabKeyboard,
35 	X_UngrabKeyboard,
36 	X_GrabKey,
37 	X_UngrabKey,
38 	X_AllowEvents,
39 	X_GrabServer,
40 	X_UngrabServer,
41 	X_QueryPointer,
42 	X_GetMotionEvents,
43 	X_TranslateCoords,
44 	X_WarpPointer,
45 	X_SetInputFocus,
46 	X_GetInputFocus,
47 	X_QueryKeymap,
48 	X_OpenFont,
49 	X_CloseFont,
50 	X_QueryFont,
51 	X_QueryTextExtents,
52 	X_ListFonts,
53 	X_ListFontsWithInfo,
54 	X_SetFontPath,
55 	X_GetFontPath,
56 	X_CreatePixmap,
57 	X_FreePixmap,
58 	X_CreateGC,
59 	X_ChangeGC,
60 	X_CopyGC,
61 	X_SetDashes,
62 	X_SetClipRectangles,
63 	X_FreeGC,
64 	X_ClearArea,
65 	X_CopyArea,
66 	X_CopyPlane,
67 	X_PolyPoint,
68 	X_PolyLine,
69 	X_PolySegment,
70 	X_PolyRectangle,
71 	X_PolyArc,
72 	X_FillPoly,
73 	X_PolyFillRectangle,
74 	X_PolyFillArc,
75 	X_PutImage,
76 	X_GetImage,
77 	X_PolyText8,
78 	X_PolyText16,
79 	X_ImageText8,
80 	X_ImageText16,
81 	X_CreateColormap,
82 	X_FreeColormap,
83 	X_CopyColormapAndFree,
84 	X_InstallColormap,
85 	X_UninstallColormap,
86 	X_ListInstalledColormaps,
87 	X_AllocColor,
88 	X_AllocNamedColor,
89 	X_AllocColorCells,
90 	X_AllocColorPlanes,
91 	X_FreeColors,
92 	X_StoreColors,
93 	X_StoreNamedColor,
94 	X_QueryColors,
95 	X_LookupColor,
96 	X_CreateCursor,
97 	X_CreateGlyphCursor,
98 	X_FreeCursor,
99 	X_RecolorCursor,
100 	X_QueryBestSize,
101 	X_QueryExtension,
102 	X_ListExtensions,
103 	X_ChangeKeyboardMapping,
104 	X_GetKeyboardMapping,
105 	X_ChangeKeyboardControl,
106 	X_GetKeyboardControl,
107 	X_Bell,
108 	X_ChangePointerControl,
109 	X_GetPointerControl,
110 	X_SetScreenSaver,
111 	X_GetScreenSaver,
112 	X_ChangeHosts,
113 	X_ListHosts,
114 	X_SetAccessControl,
115 	X_SetCloseDownMode,
116 	X_KillClient,
117 	X_RotateProperties,
118 	X_ForceScreenSaver,
119 	X_SetPointerMapping,
120 	X_GetPointerMapping,
121 	X_SetModifierMapping,
122 	X_GetModifierMapping,
123 	X_NoOperation,
124 };
125 
126 #define XMajors \
127 	"<nil>",\
128 	"CreateWindow",\
129 	"ChangeWindowAttributes",\
130 	"GetWindowAttributes",\
131 	"DestroyWindow",\
132 	"DestroySubwindows",\
133 	"ChangeSaveSet",\
134 	"ReparentWindow",\
135 	"MapWindow",\
136 	"MapSubwindows",\
137 	"UnmapWindow",\
138 	"UnmapSubwindows",\
139 	"ConfigureWindow",\
140 	"CirculateWindow",\
141 	"GetGeometry",\
142 	"QueryTree",\
143 	"InternAtom",\
144 	"GetAtomName",\
145 	"ChangeProperty",\
146 	"DeleteProperty",\
147 	"GetProperty",\
148 	"ListProperties",\
149 	"SetSelectionOwner",\
150 	"GetSelectionOwner",\
151 	"ConvertSelection",\
152 	"SendEvent",\
153 	"GrabPointer",\
154 	"UngrabPointer",\
155 	"GrabButton",\
156 	"UngrabButton",\
157 	"ChangeActivePointerGrab",\
158 	"GrabKeyboard",\
159 	"UngrabKeyboard",\
160 	"GrabKey",\
161 	"UngrabKey",\
162 	"AllowEvents",\
163 	"GrabServer",\
164 	"UngrabServer",\
165 	"QueryPointer",\
166 	"GetMotionEvents",\
167 	"TranslateCoords",\
168 	"WarpPointer",\
169 	"SetInputFocus",\
170 	"GetInputFocus",\
171 	"QueryKeymap",\
172 	"OpenFont",\
173 	"CloseFont",\
174 	"QueryFont",\
175 	"QueryTextExtents",\
176 	"ListFonts",\
177 	"ListFontsWithInfo",\
178 	"SetFontPath",\
179 	"GetFontPath",\
180 	"CreatePixmap",\
181 	"FreePixmap",\
182 	"CreateGC",\
183 	"ChangeGC",\
184 	"CopyGC",\
185 	"SetDashes",\
186 	"SetClipRectangles",\
187 	"FreeGC",\
188 	"ClearArea",\
189 	"CopyArea",\
190 	"CopyPlane",\
191 	"PolyPoint",\
192 	"PolyLine",\
193 	"PolySegment",\
194 	"PolyRectangle",\
195 	"PolyArc",\
196 	"FillPoly",\
197 	"PolyFillRectangle",\
198 	"PolyFillArc",\
199 	"PutImage",\
200 	"GetImage",\
201 	"PolyText8",\
202 	"PolyText16",\
203 	"ImageText8",\
204 	"ImageText16",\
205 	"CreateColormap",\
206 	"FreeColormap",\
207 	"CopyColormapAndFree",\
208 	"InstallColormap",\
209 	"UninstallColormap",\
210 	"ListInstalledColormaps",\
211 	"AllocColor",\
212 	"AllocNamedColor",\
213 	"AllocColorCells",\
214 	"AllocColorPlanes",\
215 	"FreeColors",\
216 	"StoreColors",\
217 	"StoreNamedColor",\
218 	"QueryColors",\
219 	"LookupColor",\
220 	"CreateCursor",\
221 	"CreateGlyphCursor",\
222 	"FreeCursor",\
223 	"RecolorCursor",\
224 	"QueryBestSize",\
225 	"QueryExtension",\
226 	"ListExtensions",\
227 	"ChangeKeyboardMapping",\
228 	"GetKeyboardMapping",\
229 	"ChangeKeyboardControl",\
230 	"GetKeyboardControl",\
231 	"Bell",\
232 	"ChangePointerControl",\
233 	"GetPointerControl",\
234 	"SetScreenSaver",\
235 	"GetScreenSaver",\
236 	"ChangeHosts",\
237 	"ListHosts",\
238 	"SetAccessControl",\
239 	"SetCloseDownMode",\
240 	"KillClient",\
241 	"RotateProperties",\
242 	"ForceScreenSaver",\
243 	"SetPointerMapping",\
244 	"GetPointerMapping",\
245 	"SetModifierMapping",\
246 	"GetModifierMapping",\
247 	"NoOperation",\
248 
249