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