Kenton Lee

X Protocol Event and Error 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 events and errors. Brief descriptions of the error conditions are also provided. Tables listing X protocol request names and codes are also available.

These tables should help X Window System programmers debug X protocol error messages. A tutorial on debugging X protocol errors is available separately.

X Events
Event NameCode
KeyPress2
KeyRelease3
ButtonPress4
ButtonRelease5
MotionNotify6
EnterNotify7
LeaveNotify8
FocusIn9
FocusOut10
KeymapNotify11
Expose12
GraphicsExpose13
NoExpose14
VisibilityNotify15
CreateNotify16
DestroyNotify17
UnmapNotify18
MapNotify19
MapRequest20
ReparentNotify21
ConfigureNotify22
ConfigureRequest23
GravityNotify24
ResizeRequest25
CirculateNotify26
CirculateRequest27
PropertyNotify28
SelectionClear29
SelectionRequest30
SelectionNotify31
ColormapNotify32
ClientMessage33
MappingNotify34
X Errors
Error NameCodeReason
Success0everything's okay
BadRequest1bad request code
BadValue2int parameter out of range
BadWindow3parameter not a Window
BadPixmap4parameter not a Pixmap
BadAtom5parameter not an Atom
BadCursor6parameter not a Cursor
BadFont7parameter not a Font
BadMatch8parameter mismatch
BadDrawable9parameter not a Pixmap or Window
BadAccess10depending on context:
  • key/button already grabbed
  • attempt to free an illegal cmap entry
  • attempt to store into a read-only color map entry
  • attempt to modify the access control list from other than the local host
BadAlloc11insufficient resources
BadColor12no such colormap
BadGC13parameter not a GC
BadIDChoice14choice not in range or already used
BadName15font or color name doesn't exist
BadLength16request length incorrect
BadImplementation17server is defective


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