XGetVisualInfo giving me a visual that doesn't work

Peter Harris pharris at opentext.com
Tue Feb 1 09:31:40 PST 2011


On 2011-02-01 13:21, Greg Abram wrote:
> This looks like an X11 bug to me... this code creates a visual of depth
> 32, uses it to create a window, and  blows up under the XMapRaised with
> BadMatch in X_CreateWindow.  xdpyinfo shows that the selected visual is
> correctly a 32 bit TrueColor visual.  If I request a 24 bit visual, its OK.

If you use a non-default depth, you have to create your own colormap and
border_pixel (or pixmap). The default (CopyFromParent) is what's causing
your BadMatch.

Peter Harris
-- 
               Open Text Connectivity Solutions Group
Peter Harris                    http://connectivity.opentext.com/
Research and Development        Phone: +1 905 762 6001
pharris at opentext.com            Toll Free: 1 877 359 4866



More information about the xorg mailing list