![]() |
This table maps X protocol requests to the Xlib functions that use them. The reverse mapping of Xlib functions to X protocol requests is available separately.
Note that the mapping is not one-to-one. Some Xlib functions generate more than one X protocol request. Conversely, some X protocol requests are used by more than one Xlib function.
These tables should help X Window System programmers debug X protocol error messages. A tutorial on debugging X protocol errors is also available separately.
| X Protocol Request | Xlib Function |
|---|---|
| AllocColor | XAllocColor |
| AllocColorCells | XAllocColorCells |
| AllocColorPlanes | XAllocColorPlanes |
| AllocNamedColor | XAllocNamedColor |
| AllowEvents | XAllowEvents |
| Bell | XBell |
| SetAccessControl | XDisableAccessControl XEnableAccessControl XSetAccessControl |
| ChangeActivePointerGrab | XChangeActivePointerGrab |
| SetCloseDownMode | XSetCloseDownMode |
| ChangeGC | XChangeGC XSetArcMode XSetBackground XSetClipMask XSetClipOrigin XSetFillRule XSetFillStyle XSetFont XSetForeground XSetFunction XSetGraphicsExposures XSetLineAttributes XSetPlaneMask XSetState XSetStipple XSetSubwindowMode XSetTile XSetTSOrigin |
| ChangeHosts | XAddHost XAddHosts XRemoveHost XRemoveHosts |
| ChangeKeyboardControl | XAutoRepeatOff XAutoRepeatOn XChangeKeyboardControl |
| ChangeKeyboardMapping | XChangeKeyboardMapping |
| ChangePointerControl | XChangePointerControl |
| ChangeProperty | XChangeProperty XSetClassHint XSetCommand XSetIconName XSetIconSizes XSetNormalHints XSetRGBColormaps XSetSizeHints XSetStandardProperties XSetTextProperty XSetTransientForHint XSetWMClientMachine XSetWMColormapWindows XSetWMHints XSetWMIconName XSetWMName XSetWMNormalHints XSetWMProperties XSetWMProtocols XSetWMSizeHints XSetZoomHints XStoreBuffer XStoreBytes XStoreName |
| ChangeSaveSet | XAddToSaveSet XChangeSaveSet XRemoveFromSaveSet |
| ChangeWindowAttributes | XChangeWindowAttributes XDefineCursor XSelectInput XSetWindowBackground XSetWindowBackgroundPixmap XSetWindowBorder XSetWindowBorderPixmap XSetWindowColormap XUndefineCursor |
| CirculateWindow | XCirculateSubwindowsDown XCirculateSubwindowsUp XCirculateSubwindows |
| ClearArea | XClearArea XClearWindow |
| CloseFont | XFreeFont XUnloadFont |
| ConfigureWindow | XConfigureWindow XLowerWindow XMapRaised XMoveResizeWindow XMoveWindow XRaiseWindow XReconfigureWMWindow XResizeWindow XRestackWindows XSetWindowBorderWidth |
| ConvertSelection | XConvertSelection |
| CopyArea | XCopyArea |
| CopyColormapAndFree | XCopyColormapAndFree |
| CopyGC | XCopyGC |
| CopyPlane | XCopyPlane |
| CreateColormap | XCreateColormap |
| CreateCursor | XCreatePixmapCursor |
| CreateGC | XCreateGC XCreateBitmapFromData XCreatePixmapFromData XOpenDisplay XReadBitmapFile |
| CreateGlyphCursor | XCreateFontCursor XCreateGlyphCursor |
| CreatePixmap | XCreatePixmap XCreateBitmapFromData XCreatePixmapFromData XReadBitmapFile |
| CreateWindow | XCreateSimpleWindow XCreateWindow |
| DeleteProperty | XDeleteProperty |
| DestroySubwindows | XDestroySubwindows |
| DestroyWindow | XDestroyWindow |
| FillPoly | XFillPolygon |
| ForceScreenSaver | XActivateScreenSaver XForceScreenSaver XResetScreenSaver |
| FreeColormap | XFreeColormap |
| FreeColors | XFreeColors |
| FreeCursor | XFreeCursor |
| FreeGC | XFreeGC XCreateBitmapFromData XCreatePixmapFromData XReadBitmapFile |
| FreePixmap | XFreePixmap |
| GetAtomName | XGetAtomName |
| GetFontPath | XGetFontPath |
| GetGeometry | XGetGeometry XGetWindowAttributes |
| GetImage | XGetImage |
| GetInputFocus | XGetInputFocus XSync XSynchronize |
| GetKeyboardControl | XGetKeyboardControl |
| GetKeyboardMapping | XGetKeyboardMapping |
| GetModifierMapping | XGetModifierMapping |
| GetMotionEvents | XGetMotionEvents |
| GetPointerControl | XGetPointerControl |
| GetPointerMapping | XGetPointerMapping |
| GetProperty | XFetchBytes XFetchName XGetClassHint XGetIconName XGetIconSizes XGetNormalHints XGetRGBColormaps XGetSizeHints XGetTextProperty XGetTransientForHint XGetWMClientMachine XGetWMColormapWindows XGetWMHints XGetWMIconName XGetWMName XGetWMNormalHints XGetWMProtocols XGetWMSizeHints XGetWindowProperty XGetZoomHints |
| GetSelectionOwner | XGetSelectionOwner |
| GetWindowAttributes | XGetWindowAttributes |
| GrabButton | XGrabButton |
| GrabKey | XGrabKey |
| GrabKeyboard | XGrabKeyboard |
| GrabPointer | XGrabPointer |
| GrabServer | XGrabServer |
| ImageText16 | XDrawImageString16 |
| ImageText8 | XDrawImageString |
| InstallColormap | XInstallColormap |
| InternAtom | XGetWMColormapWindows XGetWMProtocols XIconifyWindow XInternAtom XSetWMColormapWindows XSetWMProtocols |
| KillClient | XKillClient |
| ListExtensions | XListExtensions |
| ListFonts | XListFonts |
| ListFontsWithInfo | XListFontsWithInfo |
| ListHosts | XListHosts |
| ListInstalledColormaps | XListInstalledColormaps |
| ListProperties | XListProperties |
| LookupColor | XLookupColor XParseColor |
| MapSubwindows | XMapSubwindows |
| MapWindow | XMapRaised XMapWindow |
| NoOperation | XNoOp |
| OpenFont | XLoadFont XLoadQueryFont |
| PolyArc | XDrawArc XDrawArcs |
| PolyFillArc | XFillArc XFillArcs |
| PolyFillRectangle | XFillRectangle XFillRectangles |
| PolyLine | XDrawLines |
| PolyPoint | XDrawPoint XDrawPoints |
| PolyRectangle | XDrawRectangle XDrawRectangles |
| PolySegment | XDrawLine XDrawSegments |
| PolyText16 | XDrawString16 XDrawText16 |
| PolyText8 | XDrawString XDrawText |
| PutImage | XPutImage XCreateBitmapFromData XCreatePixmapFromData XReadBitmapFile |
| QueryBestSize | XQueryBestCursor XQueryBestSize XQueryBestStipple XQueryBestTile |
| QueryColors | XQueryColor XQueryColors |
| QueryExtension | XInitExtension XQueryExtension |
| QueryFont | XLoadQueryFont XQueryFont |
| QueryKeymap | XQueryKeymap |
| QueryPointer | XQueryPointer |
| QueryTextExtents | XQueryTextExtents XQueryTextExtents16 |
| QueryTree | XQueryTree |
| RecolorCursor | XRecolorCursor |
| ReparentWindow | XReparentWindow |
| RotateProperties | XRotateBuffers XRotateWindowProperties |
| SendEvent | XIconifyWindow XReconfigureWMWindow XSendEvent XWithdrawWindow |
| SetClipRectangles | XSetClipRectangles |
| SetCloseDownMode | XSetCloseDownMode |
| SetDashes | XSetDashes |
| SetFontPath | XSetFontPath |
| SetInputFocus | XSetInputFocus |
| SetModifierMapping | XSetModifierMapping |
| SetPointerMapping | XSetPointerMapping |
| SetScreenSaver | XGetScreenSaver XSetScreenSaver |
| SetSelectionOwner | XSetSelectionOwner |
| StoreColors | XStoreColor XStoreColors |
| StoreNamedColor | XStoreNamedColor |
| TranslateCoordinates | XTranslateCoordinates |
| UngrabButton | XUngrabButton |
| UngrabKey | XUngrabKey |
| UngrabKeyboard | XUngrabKeyboard |
| UngrabPointer | XUngrabPointer |
| UngrabServer | XUngrabServer |
| UninstallColormap | XUninstallColormap |
| UnmapSubwindows | XUnmapSubWindows |
| UnmapWindow | XUnmapWindow XWithdrawWindow |
| WarpPointer | XWarpPointer |