Skip to content

Appendix A. Xlib Functions and Protocol Requests

This appendix provides two tables that relate to Xlib functions and the X protocol. The following table lists each Xlib function (in alphabetical order) and the corresponding protocol request that it generates.

Table A.1. Protocol requests made by each Xlib function

Xlib FunctionProtocol Request
XActivateScreenSaverForceScreenSaver
XAddHostChangeHosts
XAddHostsChangeHosts
XAddToSaveSetChangeSaveSet
XAllocColorAllocColor
XAllocColorCellsAllocColorCells
XAllocColorPlanesAllocColorPlanes
XAllocNamedColorAllocNamedColor
XAllowEventsAllowEvents
XAutoRepeatOffChangeKeyboardControl
XAutoRepeatOnChangeKeyboardControl
XBellBell
XChangeActivePointerGrabChangeActivePointerGrab
XChangeGCChangeGC
XChangeKeyboardControlChangeKeyboardControl
XChangeKeyboardMappingChangeKeyboardMapping
XChangePointerControlChangePointerControl
XChangePropertyChangeProperty
XChangeSaveSetChangeSaveSet
XChangeWindowAttributesChangeWindowAttributes
XCirculateSubwindowsCirculateWindow
XCirculateSubwindowsDownCirculateWindow
XCirculateSubwindowsUpCirculateWindow
XClearAreaClearArea
XClearWindowClearArea
XConfigureWindowConfigureWindow
XConvertSelectionConvertSelection
XCopyAreaCopyArea
XCopyColormapAndFreeCopyColormapAndFree
XCopyGCCopyGC
XCopyPlaneCopyPlane
XCreateBitmapFromDataCreateGC
CreatePixmap
FreeGC
PutImage
XCreateColormapCreateColormap
XCreateFontCursorCreateGlyphCursor
XCreateGCCreateGC
XCreateGlyphCursorCreateGlyphCursor
XCreatePixmapCreatePixmap
XCreatePixmapCursorCreateCursor
XCreatePixmapFromDataCreateGC
CreatePixmap
FreeGC
PutImage
XCreateSimpleWindowCreateWindow
XCreateWindowCreateWindow
XDefineCursorChangeWindowAttributes
XDeletePropertyDeleteProperty
XDestroySubwindowsDestroySubwindows
XDestroyWindowDestroyWindow
XDisableAccessControlSetAccessControl
XDrawArcPolyArc
XDrawArcsPolyArc
XDrawImageStringImageText8
XDrawImageString16ImageText16
XDrawLinePolySegment
XDrawLinesPolyLine
XDrawPointPolyPoint
XDrawPointsPolyPoint
XDrawRectanglePolyRectangle
XDrawRectanglesPolyRectangle
XDrawSegmentsPolySegment
XDrawStringPolyText8
XDrawString16PolyText16
XDrawTextPolyText8
XDrawText16PolyText16
XEnableAccessControlSetAccessControl
XFetchBytesGetProperty
XFetchNameGetProperty
XFillArcPolyFillArc
XFillArcsPolyFillArc
XFillPolygonFillPoly
XFillRectanglePolyFillRectangle
XFillRectanglesPolyFillRectangle
XForceScreenSaverForceScreenSaver
XFreeColormapFreeColormap
XFreeColorsFreeColors
XFreeCursorFreeCursor
XFreeFontCloseFont
XFreeGCFreeGC
XFreePixmapFreePixmap
XGetAtomNameGetAtomName
XGetClassHintGetProperty
XGetFontPathGetFontPath
XGetGeometryGetGeometry
XGetIconNameGetProperty
XGetIconSizesGetProperty
XGetImageGetImage
XGetInputFocusGetInputFocus
XGetKeyboardControlGetKeyboardControl
XGetKeyboardMappingGetKeyboardMapping
XGetModifierMappingGetModifierMapping
GetMotionEvents
XGetNormalHintsGetProperty
XGetPointerControlGetPointerControl
XGetPointerMappingGetPointerMapping
XGetRGBColormapsGetProperty
XGetScreenSaverGetScreenSaver
XGetSelectionOwnerGetSelectionOwner
XGetSizeHintsGetProperty
XGetTextPropertyGetProperty
XGetTransientForHintGetProperty
XGetWMClientMachineGetProperty
XGetWMColormapWindowsGetProperty
InternAtom
XGetWMHintsGetProperty
XGetWMIconNameGetProperty
XGetWMNameGetProperty
XGetWMNormalHintsGetProperty
XGetWMProtocolsGetProperty
InternAtom
XGetWMSizeHintsGetProperty
XGetWindowAttributesGetWindowAttributes
GetGeometry
XGetWindowPropertyGetProperty
XGetZoomHintsGetProperty
XGrabButtonGrabButton
XGrabKeyGrabKey
XGrabKeyboardGrabKeyboard
XGrabPointerGrabPointer
XGrabServerGrabServer
XIconifyWindowInternAtom
SendEvent
XInitExtensionQueryExtension
XInstallColormapInstallColormap
XInternAtomInternAtom
XKillClientKillClient
XListExtensionsListExtensions
XListFontsListFonts
XListFontsWithInfoListFontsWithInfo
XListHostsListHosts
XListInstalledColormapsListInstalledColormaps
XListPropertiesListProperties
XLoadFontOpenFont
XLoadQueryFontOpenFont
QueryFont
XLookupColorLookupColor
XLowerWindowConfigureWindow
XMapRaisedConfigureWindow
MapWindow
XMapSubwindowsMapSubwindows
XMapWindowMapWindow
XMoveResizeWindowConfigureWindow
XMoveWindowConfigureWindow
XNoOpNoOperation
XOpenDisplayCreateGC
XParseColorLookupColor
XPutImagePutImage
XQueryBestCursorQueryBestSize
XQueryBestSizeQueryBestSize
XQueryBestStippleQueryBestSize
XQueryBestTileQueryBestSize
XQueryColorQueryColors
XQueryColorsQueryColors
XQueryExtensionQueryExtension
XQueryFontQueryFont
XQueryKeymapQueryKeymap
XQueryPointerQueryPointer
XQueryTextExtentsQueryTextExtents
XQueryTextExtents16QueryTextExtents
XQueryTreeQueryTree
XRaiseWindowConfigureWindow
XReadBitmapFileCreateGC
CreatePixmap
FreeGC
PutImage
XRecolorCursorRecolorCursor
XReconfigureWMWindowConfigureWindow
SendEvent
XRemoveFromSaveSetChangeSaveSet
XRemoveHostChangeHosts
XRemoveHostsChangeHosts
XReparentWindowReparentWindow
XResetScreenSaverForceScreenSaver
XResizeWindowConfigureWindow
XRestackWindowsConfigureWindow
XRotateBuffersRotateProperties
XRotateWindowPropertiesRotateProperties
XSelectInputChangeWindowAttributes
XSendEventSendEvent
XSetAccessControlSetAccessControl
XSetArcModeChangeGC
XSetBackgroundChangeGC
XSetClassHintChangeProperty
XSetClipMaskChangeGC
XSetClipOriginChangeGC
XSetClipRectanglesSetClipRectangles
SetCloseDownMode
XSetCommandChangeProperty
XSetDashesSetDashes
XSetFillRuleChangeGC
XSetFillStyleChangeGC
XSetFontChangeGC
XSetFontPathSetFontPath
XSetForegroundChangeGC
XSetFunctionChangeGC
XSetGraphicsExposuresChangeGC
XSetIconNameChangeProperty
XSetIconSizesChangeProperty
XSetInputFocusSetInputFocus
XSetLineAttributesChangeGC
XSetModifierMappingSetModifierMapping
XSetNormalHintsChangeProperty
XSetPlaneMaskChangeGC
XSetPointerMappingSetPointerMapping
XSetRGBColormapsChangeProperty
XSetScreenSaverSetScreenSaver
XSetSelectionOwnerSetSelectionOwner
XSetSizeHintsChangeProperty
XSetStandardPropertiesChangeProperty
XSetStateChangeGC
XSetStippleChangeGC
XSetSubwindowModeChangeGC
XSetTextPropertyChangeProperty
XSetTileChangeGC
XSetTransientForHintChangeProperty
XSetTSOriginChangeGC
XSetWMClientMachineChangeProperty
XSetWMColormapWindowsChangeProperty
InternAtom
XSetWMHintsChangeProperty
XSetWMIconNameChangeProperty
XSetWMNameChangeProperty
XSetWMNormalHintsChangeProperty
XSetWMPropertiesChangeProperty
XSetWMProtocolsChangeProperty
InternAtom
XSetWMSizeHintsChangeProperty
XSetWindowBackgroundChangeWindowAttributes
XSetWindowBackgroundPixmapChangeWindowAttributes
XSetWindowBorderChangeWindowAttributes
XSetWindowBorderPixmapChangeWindowAttributes
XSetWindowBorderWidthConfigureWindow
XSetWindowColormapChangeWindowAttributes
XSetZoomHintsChangeProperty
XStoreBufferChangeProperty
XStoreBytesChangeProperty
XStoreColorStoreColors
XStoreColorsStoreColors
XStoreNameChangeProperty
XStoreNamedColorStoreNamedColor
XSyncGetInputFocus
XSynchronizeGetInputFocus
XTranslateCoordinatesTranslateCoordinates
XUndefineCursorChangeWindowAttributes
XUngrabButtonUngrabButton
XUngrabKeyUngrabKey
XUngrabKeyboardUngrabKeyboard
XUngrabPointerUngrabPointer
XUngrabServerUngrabServer
XUninstallColormapUninstallColormap
XUnloadFontCloseFont
XUnmapSubwindowsUnmapSubwindows
XUnmapWindowUnmapWindow
XWarpPointerWarpPointer
XWithdrawWindowSendEvent
UnmapWindow

The following table lists each X protocol request (in alphabetical order) and the Xlib functions that reference it.

Table A.2. Xlib functions which use each Protocol Request

Protocol RequestXlib Function
AllocColorXAllocColor
AllocColorCellsXAllocColorCells
AllocColorPlanesXAllocColorPlanes
AllocNamedColorXAllocNamedColor
AllowEventsXAllowEvents
BellXBell
ChangeActivePointerGrabXChangeActivePointerGrab
ChangeGCXChangeGC
XSetArcMode
XSetBackground
XSetClipMask
XSetClipOrigin
XSetFillRule
XSetFillStyle
XSetFont
XSetForeground
XSetFunction
XSetGraphicsExposures
XSetLineAttributes
XSetPlaneMask
XSetState
XSetStipple
XSetSubwindowMode
XSetTile
XSetTSOrigin
ChangeHostsXAddHost
XAddHosts
XRemoveHost
XRemoveHosts
ChangeKeyboardControlXAutoRepeatOff
XAutoRepeatOn
XChangeKeyboardControl
ChangeKeyboardMappingXChangeKeyboardMapping
ChangePointerControlXChangePointerControl
ChangePropertyXChangeProperty
XSetClassHint
XSetCommand
XSetIconName
XSetIconSizes
XSetNormalHints
XSetRGBColormaps
XSetSizeHints
XSetStandardProperties
XSetTextProperty
XSetTransientForHint
XSetWMClientMachine
XSetWMColormapWindows
XSetWMHints
XSetWMIconName
XSetWMName
XSetWMNormalHints
XSetWMProperties
XSetWMProtocols
XSetWMSizeHints
XSetZoomHints
XStoreBuffer
XStoreBytes
XStoreName
ChangeSaveSetXAddToSaveSet
XChangeSaveSet
XRemoveFromSaveSet
ChangeWindowAttributesXChangeWindowAttributes
XDefineCursor
XSelectInput
XSetWindowBackground
XSetWindowBackgroundPixmap
XSetWindowBorder
XSetWindowBorderPixmap
XSetWindowColormap
XUndefineCursor
CirculateWindowXCirculateSubwindowsDown
XCirculateSubwindowsUp
XCirculateSubwindows
ClearAreaXClearArea
XClearWindow
CloseFontXFreeFont
XUnloadFont
ConfigureWindowXConfigureWindow
XLowerWindow
XMapRaised
XMoveResizeWindow
XMoveWindow
XRaiseWindow
XReconfigureWMWindow
XResizeWindow
XRestackWindows
XSetWindowBorderWidth
ConvertSelectionXConvertSelection
CopyAreaXCopyArea
CopyColormapAndFreeXCopyColormapAndFree
CopyGCXCopyGC
CopyPlaneXCopyPlane
CreateColormapXCreateColormap
CreateCursorXCreatePixmapCursor
CreateGCXCreateGC
XCreateBitmapFromData
XCreatePixmapFromData
XOpenDisplay
XReadBitmapFile
CreateGlyphCursorXCreateFontCursor
XCreateGlyphCursor
CreatePixmapXCreatePixmap
XCreateBitmapFromData
XCreatePixmapFromData
XReadBitmapFile
CreateWindowXCreateSimpleWindow
XCreateWindow
DeletePropertyXDeleteProperty
DestroySubwindowsXDestroySubwindows
DestroyWindowXDestroyWindow
FillPolyXFillPolygon
ForceScreenSaverXActivateScreenSaver
XForceScreenSaver
XResetScreenSaver
FreeColormapXFreeColormap
FreeColorsXFreeColors
FreeCursorXFreeCursor
FreeGCXFreeGC
XCreateBitmapFromData
XCreatePixmapFromData
XReadBitmapFile
FreePixmapXFreePixmap
GetAtomNameXGetAtomName
GetFontPathXGetFontPath
GetGeometryXGetGeometry
XGetWindowAttributes
GetImageXGetImage
GetInputFocusXGetInputFocus
XSync
XSynchronize
GetKeyboardControlXGetKeyboardControl
GetKeyboardMappingXGetKeyboardMapping
GetModifierMappingXGetModifierMapping
GetMotionEvents
GetPointerControlXGetPointerControl
GetPointerMappingXGetPointerMapping
GetPropertyXFetchBytes
XFetchName
XGetClassHint
XGetIconName
XGetIconSizes
XGetNormalHints
XGetRGBColormaps
XGetSizeHints
XGetTextProperty
XGetTransientForHint
XGetWMClientMachine
XGetWMColormapWindows
XGetWMHints
XGetWMIconName
XGetWMName
XGetWMNormalHints
XGetWMProtocols
XGetWMSizeHints
XGetWindowProperty
XGetZoomHints
GetSelectionOwnerXGetSelectionOwner
GetWindowAttributesXGetWindowAttributes
GrabButtonXGrabButton
GrabKeyXGrabKey
GrabKeyboardXGrabKeyboard
GrabPointerXGrabPointer
GrabServerXGrabServer
ImageText8XDrawImageString
ImageText16XDrawImageString16
InstallColormapXInstallColormap
InternAtomXGetWMColormapWindows
XGetWMProtocols
XIconifyWindow
XInternAtom
XSetWMColormapWindows
XSetWMProtocols
KillClientXKillClient
ListExtensionsXListExtensions
ListFontsXListFonts
ListFontsWithInfoXListFontsWithInfo
ListHostsXListHosts
ListInstalledColormapsXListInstalledColormaps
ListPropertiesXListProperties
LookupColorXLookupColor
XParseColor
MapSubwindowsXMapSubwindows
MapWindowXMapRaised
XMapWindow
NoOperationXNoOp
OpenFontXLoadFont
XLoadQueryFont
PolyArcXDrawArc
XDrawArcs
PolyFillArcXFillArc
XFillArcs
PolyFillRectangleXFillRectangle
XFillRectangles
PolyLineXDrawLines
PolyPointXDrawPoint
XDrawPoints
PolyRectangleXDrawRectangle
XDrawRectangles
PolySegmentXDrawLine
XDrawSegments
PolyText8XDrawString
XDrawText
PolyText16XDrawString16
XDrawText16
PutImageXPutImage
XCreateBitmapFromData
XCreatePixmapFromData
XReadBitmapFile
QueryBestSizeXQueryBestCursor
XQueryBestSize
XQueryBestStipple
XQueryBestTile
QueryColorsXQueryColor
XQueryColors
QueryExtensionXInitExtension
XQueryExtension
QueryFontXLoadQueryFont
XQueryFont
QueryKeymapXQueryKeymap
QueryPointerXQueryPointer
QueryTextExtentsXQueryTextExtents
XQueryTextExtents16
QueryTreeXQueryTree
RecolorCursorXRecolorCursor
ReparentWindowXReparentWindow
RotatePropertiesXRotateBuffers
XRotateWindowProperties
SendEventXIconifyWindow
XReconfigureWMWindow
XSendEvent
XWithdrawWindow
SetAccessControlXDisableAccessControl
XEnableAccessControl
XSetAccessControl
SetClipRectanglesXSetClipRectangles
SetCloseDownMode
SetDashesXSetDashes
SetFontPathXSetFontPath
SetInputFocusXSetInputFocus
SetModifierMappingXSetModifierMapping
SetPointerMappingXSetPointerMapping
SetScreenSaverXGetScreenSaver
XSetScreenSaver
SetSelectionOwnerXSetSelectionOwner
StoreColorsXStoreColor
XStoreColors
StoreNamedColorXStoreNamedColor
TranslateCoordinatesXTranslateCoordinates
UngrabButtonXUngrabButton
UngrabKeyXUngrabKey
UngrabKeyboardXUngrabKeyboard
UngrabPointerXUngrabPointer
UngrabServerXUngrabServer
UninstallColormapXUninstallColormap
UnmapSubwindowsXUnmapSubWindows
UnmapWindowXUnmapWindow
XWithdrawWindow
WarpPointerXWarpPointer