1 /***********************************************************
3 Copyright 1987, 1998 The Open Group
5 Permission to use, copy, modify, distribute, and sell this software and its
6 documentation for any purpose is hereby granted without fee, provided that
7 the above copyright notice appear in all copies and that both that
8 copyright notice and this permission notice appear in supporting
11 The above copyright notice and this permission notice shall be included in
12 all copies or substantial portions of the Software.
14 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17 OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
18 AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
19 CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21 Except as contained in this notice, the name of The Open Group shall not be
22 used in advertising or otherwise to promote the sale, use or other dealings
23 in this Software without prior written authorization from The Open Group.
26 Copyright 1987 by Digital Equipment Corporation, Maynard, Massachusetts.
30 Permission to use, copy, modify, and distribute this software and its
31 documentation for any purpose and without fee is hereby granted,
32 provided that the above copyright notice appear in all copies and that
33 both that copyright notice and this permission notice appear in
34 supporting documentation, and that the name of Digital not be
35 used in advertising or publicity pertaining to distribution of the
36 software without specific, written prior permission.
38 DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
39 ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
40 DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
41 ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
42 WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
43 ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
46 ******************************************************************/
48 #ifdef HAVE_DIX_CONFIG_H
49 #include <dix-config.h>
55 #include <X11/Xproto.h>
56 #include "windowstr.h"
57 #include "extnsionst.h"
58 #include "dixstruct.h"
59 #include "dixevents.h"
64 int (* InitialVector
[3]) (
65 ClientPtr
/* client */
69 ProcInitialConnection
,
70 ProcEstablishConnection
73 _X_EXPORT
int (* ProcVector
[256]) (
74 ClientPtr
/* client */
79 ProcChangeWindowAttributes
,
80 ProcGetWindowAttributes
,
82 ProcDestroySubwindows
, /* 5 */
87 ProcUnmapWindow
, /* 10 */
92 ProcQueryTree
, /* 15 */
97 ProcGetProperty
, /* 20 */
99 ProcSetSelectionOwner
,
100 ProcGetSelectionOwner
,
101 ProcConvertSelection
,
102 ProcSendEvent
, /* 25 */
107 ProcChangeActivePointerGrab
, /* 30 */
112 ProcAllowEvents
, /* 35 */
117 ProcTranslateCoords
, /* 40 */
122 ProcOpenFont
, /* 45 */
125 ProcQueryTextExtents
,
127 ProcListFontsWithInfo
, /* 50 */
132 ProcCreateGC
, /* 55 */
136 ProcSetClipRectangles
,
138 ProcClearToBackground
,
142 ProcPolyLine
, /* 65 */
147 ProcPolyFillRectangle
, /* 70 */
152 ProcPolyText
, /* 75 */
157 ProcCopyColormapAndFree
, /* 80 */
159 ProcUninstallColormap
,
160 ProcListInstalledColormaps
,
162 ProcAllocNamedColor
, /* 85 */
164 ProcAllocColorPlanes
,
167 ProcStoreNamedColor
, /* 90 */
171 ProcCreateGlyphCursor
,
172 ProcFreeCursor
, /* 95 */
177 ProcChangeKeyboardMapping
, /* 100 */
178 ProcGetKeyboardMapping
,
179 ProcChangeKeyboardControl
,
180 ProcGetKeyboardControl
,
182 ProcChangePointerControl
, /* 105 */
183 ProcGetPointerControl
,
187 ProcListHosts
, /* 110 */
188 ProcChangeAccessControl
,
189 ProcChangeCloseDownMode
,
191 ProcRotateProperties
,
192 ProcForceScreenSaver
, /* 115 */
193 ProcSetPointerMapping
,
194 ProcGetPointerMapping
,
195 ProcSetModifierMapping
,
196 ProcGetModifierMapping
,
207 int (* SwappedProcVector
[256]) (
208 ClientPtr
/* client */
213 SProcChangeWindowAttributes
,
214 SProcResourceReq
, /* GetWindowAttributes */
215 SProcResourceReq
, /* DestroyWindow */
216 SProcResourceReq
, /* 5 DestroySubwindows */
217 SProcResourceReq
, /* SProcChangeSaveSet, */
219 SProcResourceReq
, /* MapWindow */
220 SProcResourceReq
, /* MapSubwindows */
221 SProcResourceReq
, /* 10 UnmapWindow */
222 SProcResourceReq
, /* UnmapSubwindows */
223 SProcConfigureWindow
,
224 SProcResourceReq
, /* SProcCirculateWindow, */
225 SProcResourceReq
, /* GetGeometry */
226 SProcResourceReq
, /* 15 QueryTree */
228 SProcResourceReq
, /* SProcGetAtomName, */
231 SProcGetProperty
, /* 20 */
232 SProcResourceReq
, /* SProcListProperties, */
233 SProcSetSelectionOwner
,
234 SProcResourceReq
, /* SProcGetSelectionOwner, */
235 SProcConvertSelection
,
236 SProcSendEvent
, /* 25 */
238 SProcResourceReq
, /* SProcUngrabPointer, */
241 SProcChangeActivePointerGrab
, /* 30 */
243 SProcResourceReq
, /* SProcUngrabKeyboard, */
246 SProcResourceReq
, /* 35 SProcAllowEvents, */
247 SProcSimpleReq
, /* SProcGrabServer, */
248 SProcSimpleReq
, /* SProcUngrabServer, */
249 SProcResourceReq
, /* SProcQueryPointer, */
250 SProcGetMotionEvents
,
251 SProcTranslateCoords
, /*40 */
254 SProcSimpleReq
, /* SProcGetInputFocus, */
255 SProcSimpleReq
, /* QueryKeymap, */
256 SProcOpenFont
, /* 45 */
257 SProcResourceReq
, /* SProcCloseFont, */
258 SProcResourceReq
, /* SProcQueryFont, */
259 SProcResourceReq
, /* SProcQueryTextExtents, */
261 SProcListFontsWithInfo
, /* 50 */
263 SProcSimpleReq
, /* GetFontPath, */
265 SProcResourceReq
, /* SProcFreePixmap, */
266 SProcCreateGC
, /* 55 */
270 SProcSetClipRectangles
,
271 SProcResourceReq
, /* 60 SProcFreeGC, */
272 SProcClearToBackground
,
275 SProcPoly
, /* PolyPoint, */
276 SProcPoly
, /* 65 PolyLine */
277 SProcPoly
, /* PolySegment, */
278 SProcPoly
, /* PolyRectangle, */
279 SProcPoly
, /* PolyArc, */
281 SProcPoly
, /* 70 PolyFillRectangle */
282 SProcPoly
, /* PolyFillArc, */
286 SProcPolyText
, /* 75 */
290 SProcResourceReq
, /* SProcFreeColormap, */
291 SProcCopyColormapAndFree
, /* 80 */
292 SProcResourceReq
, /* SProcInstallColormap, */
293 SProcResourceReq
, /* SProcUninstallColormap, */
294 SProcResourceReq
, /* SProcListInstalledColormaps, */
296 SProcAllocNamedColor
, /* 85 */
297 SProcAllocColorCells
,
298 SProcAllocColorPlanes
,
301 SProcStoreNamedColor
, /* 90 */
305 SProcCreateGlyphCursor
,
306 SProcResourceReq
, /* 95 SProcFreeCursor, */
310 SProcSimpleReq
, /* ListExtensions, */
311 SProcChangeKeyboardMapping
, /* 100 */
312 SProcSimpleReq
, /* GetKeyboardMapping, */
313 SProcChangeKeyboardControl
,
314 SProcSimpleReq
, /* GetKeyboardControl, */
315 SProcSimpleReq
, /* Bell, */
316 SProcChangePointerControl
, /* 105 */
317 SProcSimpleReq
, /* GetPointerControl, */
319 SProcSimpleReq
, /* GetScreenSaver, */
321 SProcSimpleReq
, /* 110 ListHosts, */
322 SProcSimpleReq
, /* SProcChangeAccessControl, */
323 SProcSimpleReq
, /* SProcChangeCloseDownMode, */
324 SProcResourceReq
, /* SProcKillClient, */
325 SProcRotateProperties
,
326 SProcSimpleReq
, /* 115 ForceScreenSaver */
327 SProcSimpleReq
, /* SetPointerMapping, */
328 SProcSimpleReq
, /* GetPointerMapping, */
329 SProcSimpleReq
, /* SetModifierMapping, */
330 SProcSimpleReq
, /* GetModifierMapping, */
341 _X_EXPORT EventSwapPtr EventSwapVector
[128] =
343 (EventSwapPtr
)SErrorEvent
,
348 SKeyButtonPtrEvent
, /* 5 */
353 SFocusEvent
, /* 10 */
356 SGraphicsExposureEvent
,
358 SVisibilityEvent
, /* 15 */
363 SMapRequestEvent
, /* 20 */
365 SConfigureNotifyEvent
,
366 SConfigureRequestEvent
,
368 SResizeRequestEvent
, /* 25 */
372 SSelectionClearEvent
,
373 SSelectionRequestEvent
, /* 30 */
374 SSelectionNotifyEvent
,
381 _X_EXPORT ReplySwapPtr ReplySwapVector
[256] =
386 (ReplySwapPtr
)SGetWindowAttributesReply
,
388 ReplyNotSwappd
, /* 5 */
393 ReplyNotSwappd
, /* 10 */
397 (ReplySwapPtr
)SGetGeometryReply
,
398 (ReplySwapPtr
)SQueryTreeReply
, /* 15 */
399 (ReplySwapPtr
)SInternAtomReply
,
400 (ReplySwapPtr
)SGetAtomNameReply
,
403 (ReplySwapPtr
)SGetPropertyReply
, /* 20 */
404 (ReplySwapPtr
)SListPropertiesReply
,
406 (ReplySwapPtr
)SGetSelectionOwnerReply
,
408 ReplyNotSwappd
, /* 25 */
409 (ReplySwapPtr
)SGenericReply
, /* SGrabPointerReply, */
413 ReplyNotSwappd
, /* 30 */
414 (ReplySwapPtr
)SGenericReply
, /* SGrabKeyboardReply, */
418 ReplyNotSwappd
, /* 35 */
421 (ReplySwapPtr
)SQueryPointerReply
,
422 (ReplySwapPtr
)SGetMotionEventsReply
,
423 (ReplySwapPtr
)STranslateCoordsReply
, /* 40 */
426 (ReplySwapPtr
)SGetInputFocusReply
,
427 (ReplySwapPtr
)SQueryKeymapReply
,
428 ReplyNotSwappd
, /* 45 */
430 (ReplySwapPtr
)SQueryFontReply
,
431 (ReplySwapPtr
)SQueryTextExtentsReply
,
432 (ReplySwapPtr
)SListFontsReply
,
433 (ReplySwapPtr
)SListFontsWithInfoReply
, /* 50 */
435 (ReplySwapPtr
)SGetFontPathReply
,
438 ReplyNotSwappd
, /* 55 */
443 ReplyNotSwappd
, /* 60 */
448 ReplyNotSwappd
, /* 65 */
453 ReplyNotSwappd
, /* 70 */
456 (ReplySwapPtr
)SGetImageReply
,
458 ReplyNotSwappd
, /* 75 */
463 ReplyNotSwappd
, /* 80 */
466 (ReplySwapPtr
)SListInstalledColormapsReply
,
467 (ReplySwapPtr
)SAllocColorReply
,
468 (ReplySwapPtr
)SAllocNamedColorReply
, /* 85 */
469 (ReplySwapPtr
)SAllocColorCellsReply
,
470 (ReplySwapPtr
)SAllocColorPlanesReply
,
473 ReplyNotSwappd
, /* 90 */
474 (ReplySwapPtr
)SQueryColorsReply
,
475 (ReplySwapPtr
)SLookupColorReply
,
478 ReplyNotSwappd
, /* 95 */
480 (ReplySwapPtr
)SQueryBestSizeReply
,
481 (ReplySwapPtr
)SGenericReply
, /* SQueryExtensionReply, */
482 (ReplySwapPtr
)SListExtensionsReply
,
483 ReplyNotSwappd
, /* 100 */
484 (ReplySwapPtr
)SGetKeyboardMappingReply
,
486 (ReplySwapPtr
)SGetKeyboardControlReply
,
488 ReplyNotSwappd
, /* 105 */
489 (ReplySwapPtr
)SGetPointerControlReply
,
491 (ReplySwapPtr
)SGetScreenSaverReply
,
493 (ReplySwapPtr
)SListHostsReply
, /* 110 */
498 ReplyNotSwappd
, /* 115 */
499 (ReplySwapPtr
)SGenericReply
, /* SetPointerMapping */
500 (ReplySwapPtr
)SGetPointerMappingReply
,
501 (ReplySwapPtr
)SGenericReply
, /* SetModifierMapping */
502 (ReplySwapPtr
)SGetModifierMappingReply
, /* 119 */
503 ReplyNotSwappd
, /* 120 */
504 ReplyNotSwappd
, /* 121 */
505 ReplyNotSwappd
, /* 122 */
506 ReplyNotSwappd
, /* 123 */
507 ReplyNotSwappd
, /* 124 */
508 ReplyNotSwappd
, /* 125 */
509 ReplyNotSwappd
, /* 126 */
510 ReplyNotSwappd
, /* NoOperation */