In general, when a request terminates with an error, the request has no side effects (that is, there is no partial execution). The only requests for which this is not true are ChangeWindowAttributes, ChangeGC, PolyText8, PolyText16, FreeColors, StoreColors and ChangeKeyboardControl.
The following error codes result from various requests as follows:
Note
The Atom, Colormap, Cursor, Drawable, Font, GContext, Pixmap and Window errors are also used when the argument type is extended by union with a set of fixed alternatives, for example, <WINDOW or PointerRoot or None>.