Howto create a window with ARGB32-visual?

Julien Cristau jcristau at debian.org
Fri Sep 24 06:00:54 PDT 2010


On Fri, Sep 24, 2010 at 14:25:05 +0200, Clemens Eisserer wrote:

> XCreateWindow(display, root, 0, 0, 200, 200, 0, 32, InputOutput,
> info.visual,  0, NULL);
> 
> Any idea whats wrong here?
> 
The default border-pixmap and colormap are CopyFromParent.  That won't
fly if your window and its parent have different depths/visuals.  That's
pretty clearly explained in the protocol spec's description of
CreateWindow, AFAICT.

Cheers,
Julien



More information about the xorg mailing list