Name
ColormapNotify — xcolormap
When Generated
A ColormapNotify event reports when the
colormap attribute of a window changes or when the colormap
specified by the attribute is installed, uninstalled, or freed. This
event is generated by XChangeWindowAttributes(),
XFreeColormap(),
XInstallColormap(), and
XUninstallColormap().
Select With
This event is selected with
ColormapChangeMask.
XEvent Structure Name
typedef union _XEvent {
...
XColormapEvent xcolormap;
...
} XEvent;Event Structure
typedef struct {
int type;
unsigned long serial; /* # of last request processed by server */
Bool send_event; /* True if this came from SendEvent request */
Display *display; /* Display the event was read from */
Window window;
Colormap colormap; /* a colormap or None */
Bool new;
int state; /* ColormapInstalled, ColormapUninstalled */
} XColormapEvent;Event Structure Members
windowThe window whose associated colormap or attribute changes.
colormapThe colormap associated with the window, either a colormap ID or the constant
None. It will beNoneonly if this event was generated due to anXFreeColormapcall.newTruewhen the colormap attribute has been changed, orFalsewhen the colormap is installed or uninstalled.stateEither
ColormapInstalledorColormapUninstalled; it indicates whether the colormap is installed or uninstalled.
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access