Re: Howto create a window with ARGB32-visual?

2010-09-24 Thread Clemens Eisserer
Hi, > 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. Setting a new ColorMap as well as a BorderPixmap helped

Re: Howto create a window with ARGB32-visual?

2010-09-24 Thread Eeri Kask
On 09/24/2010 02:25 PM, Clemens Eisserer wrote: > My attemp tried to find a 32-bit visual, and pass that to > XCreateWindow: > > XVisualInfo info; > int cnt; > XVisualInfo *visInfos = XGetVisualInfo(display, 0, NULL, &cnt); info.screen = XDefaultScreen (display); info.depth = 32; visInfos

Re: Howto create a window with ARGB32-visual?

2010-09-24 Thread Julien Cristau
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 h

Re: Howto create a window with ARGB32-visual?

2010-09-24 Thread Aaron Plattner
On Fri, Sep 24, 2010 at 05:25:05AM -0700, Clemens Eisserer wrote: > Hi, > > I would like to create a Window with ARGB32-visual to reproduce a bug > I experience > with shaped ARGB32 windows when not using a composition manager, > however I always get a BadMatch error. > > My attemp tried to find

Howto create a window with ARGB32-visual?

2010-09-24 Thread Clemens Eisserer
Hi, I would like to create a Window with ARGB32-visual to reproduce a bug I experience with shaped ARGB32 windows when not using a composition manager, however I always get a BadMatch error. My attemp tried to find a 32-bit visual, and pass that to XCreateWindow: XVisualInfo info; int cnt; XVisu