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
[email protected]            Toll Free: 1 877 359 4866
_______________________________________________
[email protected]: X.Org support
Archives: http://lists.freedesktop.org/archives/xorg
Info: http://lists.freedesktop.org/mailman/listinfo/xorg
Your subscription address: [email protected]

Reply via email to