To set a window's WM_COLORMAP_WINDOWS property, use XSetWMColormapWindows().
To read a window's WM_COLORMAP_WINDOWS property, use XGetWMColormapWindows().