If the specified colormap is not already an installed colormap, the X server generates a _C_o_l_o_r_m_a_p_N_o_t_i_f_y event on each window that has that colormap. In addition, for every other colormap that is installed as a result of a call to _X_I_n_s_t_a_l_l_C_o_l_o_r_m_a_p, the X server generates a _C_o_l_o_r_m_a_p_N_o_t_i_f_y event on each window that has that colormap.
_X_I_n_s_t_a_l_l_C_o_l_o_r_m_a_p can generate a _B_a_d_C_o_l_o_r error.
The _X_U_n_i_n_s_t_a_l_l_C_o_l_o_r_m_a_p function removes the specified colormap from the required list for its screen. As a result, the specified colormap might be uninstalled, and the X server might implicitly install or uninstall additional colormaps. Which colormaps get installed or uninstalled is server dependent except that the required list must remain installed.
If the specified colormap becomes uninstalled, the X server generates a _C_o_l_o_r_m_a_p_N_o_t_i_f_y event on each window that has that colormap. In addition, for every other colormap that is installed or uninstalled as a result of a call to _X_U_n_i_n_s_t_a_l_l_C_o_l_o_r_m_a_p, the X server generates a _C_o_l_o_r_m_a_p_N_o_t_i_f_y event on each window that has that colormap.
_X_U_n_i_n_s_t_a_l_l_C_o_l_o_r_m_a_p can generate a _B_a_d_C_o_l_o_r error.
The _X_L_i_s_t_I_n_s_t_a_l_l_e_d_C_o_l_o_r_m_a_p_s function returns a list of the currently installed colormaps for the screen of the specified window. The order of the colormaps in the list is not significant and is no explicit indication of the required list. When the allocated list is no longer needed, free it by using _X_F_r_e_e.
_X_L_i_s_t_I_n_s_t_a_l_l_e_d_C_o_l_o_r_m_a_p_s can generate a _B_a_d_W_i_n_d_o_w error.