The
XSetWindowColormap()
function sets the specified colormap of the specified window.
The colormap must have the same visual type as the window,
or a
BadMatch
error results.
XSetWindowColormap()
can generate
BadColor,
BadMatch,
and
BadWindow
errors.
Diagnostics
BadColor
A value for a Colormap argument does not name a
defined Colormap.