Kenton Lee

X Protocol Request Codes


This table is derived from the X Consortium's X11R6 Xlib specification; Copyright © X Consortium.
This HTML version is Copyright © 1996 by Kenton Lee, Palo Alto, California, USA. All Rights Reserved.
Last modified August 27, 1996.

These tables list the names and codes for the X Window Systems protocol's requests. The left table is sorted numerically by request code and the right table is sorted alphabetically by request name.

These tables should help X Window System programmers debug X protocol error messages. A tutorial on debugging X protocol errors is available separately. Tables mapping X protocol requests to Xlib functions and tables of event and error codes are also available.

Sorted by request code
Request NameCode
CreateWindow1
ChangeWindowAttributes2
GetWindowAttributes3
DestroyWindow4
DestroySubwindows5
ChangeSaveSet6
ReparentWindow7
MapWindow8
MapSubwindows9
UnmapWindow10
UnmapSubwindows11
ConfigureWindow12
CirculateWindow13
GetGeometry14
QueryTree15
InternAtom16
GetAtomName17
ChangeProperty18
DeleteProperty19
GetProperty20
ListProperties21
SetSelectionOwner22
GetSelectionOwner23
ConvertSelection24
SendEvent25
GrabPointer26
UngrabPointer27
GrabButton28
UngrabButton29
ChangeActivePointerGrab30
GrabKeyboard31
UngrabKeyboard32
GrabKey33
UngrabKey34
AllowEvents35
GrabServer36
UngrabServer37
QueryPointer38
GetMotionEvents39
TranslateCoords40
WarpPointer41
SetInputFocus42
GetInputFocus43
QueryKeymap44
OpenFont45
CloseFont46
QueryFont47
QueryTextExtents48
ListFonts49
ListFontsWithInfo50
SetFontPath51
GetFontPath52
CreatePixmap53
FreePixmap54
CreateGC55
ChangeGC56
CopyGC57
SetDashes58
SetClipRectangles59
FreeGC60
ClearArea61
CopyArea62
CopyPlane63
PolyPoint64
PolyLine65
PolySegment66
PolyRectangle67
PolyArc68
FillPoly69
PolyFillRectangle70
PolyFillArc71
PutImage72
GetImage73
PolyText874
PolyText1675
ImageText876
ImageText1677
CreateColormap78
FreeColormap79
CopyColormapAndFree80
InstallColormap81
UninstallColormap82
ListInstalledColormaps83
AllocColor84
AllocNamedColor85
AllocColorCells86
AllocColorPlanes87
FreeColors88
StoreColors89
StoreNamedColor90
QueryColors91
LookupColor92
CreateCursor93
CreateGlyphCursor94
FreeCursor95
RecolorCursor96
QueryBestSize97
QueryExtension98
ListExtensions99
ChangeKeyboardMapping100
GetKeyboardMapping101
ChangeKeyboardControl102
GetKeyboardControl103
Bell104
ChangePointerControl105
GetPointerControl106
SetScreenSaver107
GetScreenSaver108
ChangeHosts109
ListHosts110
SetAccessControl111
SetCloseDownMode112
KillClient113
RotateProperties114
ForceScreenSaver115
SetPointerMapping116
GetPointerMapping117
SetModifierMapping118
GetModifierMapping119
NoOperation127
Sorted by request name
Request NameCode
AllocColor84
AllocColorCells86
AllocColorPlanes87
AllocNamedColor85
AllowEvents35
Bell104
ChangeActivePointerGrab30
ChangeGC56
ChangeHosts109
ChangeKeyboardControl102
ChangeKeyboardMapping100
ChangePointerControl105
ChangeProperty18
ChangeSaveSet6
ChangeWindowAttributes2
CirculateWindow13
ClearArea61
CloseFont46
ConfigureWindow12
ConvertSelection24
CopyArea62
CopyColormapAndFree80
CopyGC57
CopyPlane63
CreateColormap78
CreateCursor93
CreateGC55
CreateGlyphCursor94
CreatePixmap53
CreateWindow1
DeleteProperty19
DestroySubwindows5
DestroyWindow4
FillPoly69
ForceScreenSaver115
FreeColormap79
FreeColors88
FreeCursor95
FreeGC60
FreePixmap54
GetAtomName17
GetFontPath52
GetGeometry14
GetImage73
GetInputFocus43
GetKeyboardControl103
GetKeyboardMapping101
GetModifierMapping119
GetMotionEvents39
GetPointerControl106
GetPointerMapping117
GetProperty20
GetScreenSaver108
GetSelectionOwner23
GetWindowAttributes3
GrabButton28
GrabKey33
GrabKeyboard31
GrabPointer26
GrabServer36
ImageText1677
ImageText876
InstallColormap81
InternAtom16
KillClient113
ListExtensions99
ListFonts49
ListFontsWithInfo50
ListHosts110
ListInstalledColormaps83
ListProperties21
LookupColor92
MapSubwindows9
MapWindow8
NoOperation127
OpenFont45
PolyArc68
PolyFillArc71
PolyFillRectangle70
PolyLine65
PolyPoint64
PolyRectangle67
PolySegment66
PolyText1675
PolyText874
PutImage72
QueryBestSize97
QueryColors91
QueryExtension98
QueryFont47
QueryKeymap44
QueryPointer38
QueryTextExtents48
QueryTree15
RecolorCursor96
ReparentWindow7
RotateProperties114
SendEvent25
SetAccessControl111
SetClipRectangles59
SetCloseDownMode112
SetDashes58
SetFontPath51
SetInputFocus42
SetModifierMapping118
SetPointerMapping116
SetScreenSaver107
SetSelectionOwner22
StoreColors89
StoreNamedColor90
TranslateCoords40
UngrabButton29
UngrabKey34
UngrabKeyboard32
UngrabPointer27
UngrabServer37
UninstallColormap82
UnmapSubwindows11
UnmapWindow10
WarpPointer41


[Home] [Mail] [X Papers] [X WWW Sites]