1 /**********************************************************************
3 * This file contains the codes needed to descipher an Fvwm Internal
4 * Error. This list is compiled from pieces of the X include files,
5 * but is not actually used by the fvwm code. It is included for
7 *********************************************************************/
9 /*************************************************************************
12 *************************************************************************/
14 #define X_CreateWindow 1
15 #define X_ChangeWindowAttributes 2
16 #define X_GetWindowAttributes 3
17 #define X_DestroyWindow 4
18 #define X_DestroySubwindows 5
19 #define X_ChangeSaveSet 6
20 #define X_ReparentWindow 7
22 #define X_MapSubwindows 9
23 #define X_UnmapWindow 10
24 #define X_UnmapSubwindows 11
25 #define X_ConfigureWindow 12
26 #define X_CirculateWindow 13
27 #define X_GetGeometry 14
28 #define X_QueryTree 15
29 #define X_InternAtom 16
30 #define X_GetAtomName 17
31 #define X_ChangeProperty 18
32 #define X_DeleteProperty 19
33 #define X_GetProperty 20
34 #define X_ListProperties 21
35 #define X_SetSelectionOwner 22
36 #define X_GetSelectionOwner 23
37 #define X_ConvertSelection 24
38 #define X_SendEvent 25
39 #define X_GrabPointer 26
40 #define X_UngrabPointer 27
41 #define X_GrabButton 28
42 #define X_UngrabButton 29
43 #define X_ChangeActivePointerGrab 30
44 #define X_GrabKeyboard 31
45 #define X_UngrabKeyboard 32
47 #define X_UngrabKey 34
48 #define X_AllowEvents 35
49 #define X_GrabServer 36
50 #define X_UngrabServer 37
51 #define X_QueryPointer 38
52 #define X_GetMotionEvents 39
53 #define X_TranslateCoords 40
54 #define X_WarpPointer 41
55 #define X_SetInputFocus 42
56 #define X_GetInputFocus 43
57 #define X_QueryKeymap 44
59 #define X_CloseFont 46
60 #define X_QueryFont 47
61 #define X_QueryTextExtents 48
62 #define X_ListFonts 49
63 #define X_ListFontsWithInfo 50
64 #define X_SetFontPath 51
65 #define X_GetFontPath 52
66 #define X_CreatePixmap 53
67 #define X_FreePixmap 54
71 #define X_SetDashes 58
72 #define X_SetClipRectangles 59
74 #define X_ClearArea 61
76 #define X_CopyPlane 63
77 #define X_PolyPoint 64
79 #define X_PolySegment 66
80 #define X_PolyRectangle 67
83 #define X_PolyFillRectangle 70
84 #define X_PolyFillArc 71
87 #define X_PolyText8 74
88 #define X_PolyText16 75
89 #define X_ImageText8 76
90 #define X_ImageText16 77
91 #define X_CreateColormap 78
92 #define X_FreeColormap 79
93 #define X_CopyColormapAndFree 80
94 #define X_InstallColormap 81
95 #define X_UninstallColormap 82
96 #define X_ListInstalledColormaps 83
97 #define X_AllocColor 84
98 #define X_AllocNamedColor 85
99 #define X_AllocColorCells 86
100 #define X_AllocColorPlanes 87
101 #define X_FreeColors 88
102 #define X_StoreColors 89
103 #define X_StoreNamedColor 90
104 #define X_QueryColors 91
105 #define X_LookupColor 92
106 #define X_CreateCursor 93
107 #define X_CreateGlyphCursor 94
108 #define X_FreeCursor 95
109 #define X_RecolorCursor 96
110 #define X_QueryBestSize 97
111 #define X_QueryExtension 98
112 #define X_ListExtensions 99
113 #define X_ChangeKeyboardMapping 100
114 #define X_GetKeyboardMapping 101
115 #define X_ChangeKeyboardControl 102
116 #define X_GetKeyboardControl 103
118 #define X_ChangePointerControl 105
119 #define X_GetPointerControl 106
120 #define X_SetScreenSaver 107
121 #define X_GetScreenSaver 108
122 #define X_ChangeHosts 109
123 #define X_ListHosts 110
124 #define X_SetAccessControl 111
125 #define X_SetCloseDownMode 112
126 #define X_KillClient 113
127 #define X_RotateProperties 114
128 #define X_ForceScreenSaver 115
129 #define X_SetPointerMapping 116
130 #define X_GetPointerMapping 117
131 #define X_SetModifierMapping 118
132 #define X_GetModifierMapping 119
133 #define X_NoOperation 127
135 /*****************************************************************
138 *****************************************************************/
140 #define Success 0 /* everything's okay */
141 #define BadRequest 1 /* bad request code */
142 #define BadValue 2 /* int parameter out of range */
143 #define BadWindow 3 /* parameter not a Window */
144 #define BadPixmap 4 /* parameter not a Pixmap */
145 #define BadAtom 5 /* parameter not an Atom */
146 #define BadCursor 6 /* parameter not a Cursor */
147 #define BadFont 7 /* parameter not a Font */
148 #define BadMatch 8 /* parameter mismatch */
149 #define BadDrawable 9 /* parameter not a Pixmap or Window */
150 #define BadAccess 10 /* depending on context:
151 - key/button already grabbed
152 - attempt to free an illegal
154 - attempt to store into a read-only
156 - attempt to modify the access control
157 list from other than the local host.
159 #define BadAlloc 11 /* insufficient resources */
160 #define BadColor 12 /* no such colormap */
161 #define BadGC 13 /* parameter not a GC */
162 #define BadIDChoice 14 /* choice not in range or already used */
163 #define BadName 15 /* font or color name doesn't exist */
164 #define BadLength 16 /* Request length incorrect */
165 #define BadImplementation 17 /* server is defective */
167 #define FirstExtension Error 128
168 #define LastExtensionError 255
171 /*************************************************************************
174 *************************************************************************/
177 #define ButtonPress 4
178 #define ButtonRelease 5
179 #define MotionNotify 6
180 #define EnterNotify 7
181 #define LeaveNotify 8
184 #define KeymapNotify 11
186 #define GraphicsExpose 13
188 #define VisibilityNotify 15
189 #define CreateNotify 16
190 #define DestroyNotify 17
191 #define UnmapNotify 18
193 #define MapRequest 20
194 #define ReparentNotify 21
195 #define ConfigureNotify 22
196 #define ConfigureRequest 23
197 #define GravityNotify 24
198 #define ResizeRequest 25
199 #define CirculateNotify 26
200 #define CirculateRequest 27
201 #define PropertyNotify 28
202 #define SelectionClear 29
203 #define SelectionRequest 30
204 #define SelectionNotify 31
205 #define ColormapNotify 32
206 #define ClientMessage 33
207 #define MappingNotify 34
208 #define LASTEvent 35 /* must be bigger than any event # */