Image depth, visuals and colormaps

Adam Jackson ajax at
Wed May 30 06:48:51 PDT 2012

On 5/30/12 4:32 AM, Alexandre CONFIANT-LATOUR wrote:

> What are the "good practices" for getting "on the fly" color depth
> switching to work ?

That's not a thing xserver is set up to do, because that's not a thing X 
lets you do.  The list of depths is constructed statically at server 
startup, and the only way to get the list of depths and visuals is in 
the initial connection handshake; which means it doesn't happen, because 
clients are not written to disconnect and reconnect.  You could probably 
hack something into working, but.

A much easier thing to do would be to simply export multiple _screens_ 
from the same display, each with a different depth, and then run your 
rendering against the screen with the depth you want instead of trying 
to switch the depth of a single screen.

- ajax

More information about the xorg mailing list