On Wed, 6 Mar 2002, Chandramouli Nagarajan wrote:

> Hello everybody,
>  I am new to this list. I have few basic doubts on the functions of
> colormap. It would be very helpful if anyone can help me in clearing
> them up.
>  

   It's important to make a distinction between hardware colormaps
and the X11 abstraction "Colormap".  You can have as many X colormaps
as you want (a separate one for each window if you like), but since PC 
hardware only has a single hardware colormap the X-server will need to 
unloaded one in order to install a new one.  So when the focus on a window
changes and the window manager calls XInstallColormap, the previously
installed colormap will be unloaded and clients will get an
XColormapEvent (provided they requested them).   In theory, if the
hardware supported more colormaps you could have more than one
loaded at a time.  I know some Sun hardware has two hardware colormaps.

   Note that *every* window has a colormaps, but usually it's
the default map and many windows will share the default map.


                                Mark.


>  
> ------------------------------------------------------------------------
> --
>    Every xserver supports one or more colormaps. 
> In case of multiple colormaps, how do they differ from each other?
> What could be the functional impact of them?
> Can i configure my Xserver, to use a particular colormap for a
> particular screen?
> Do two Xservers, configured same for a screen (say a screen of depth-8,
> which can support a pseudocolor visual, with 256 colormap entries),
> neverthless behave differently for xclients using that screen(say i one
> xserver is only capable of giving psedocolor visual and the other can
> support even True color and Direct color visuals)?
> ------------------------------------------------------------------------
> ----
>  
> Thanks and regards,
> Chandramouli Nagarajan
> 

_______________________________________________
Xpert mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/xpert

Reply via email to