<h1 style="margin:0px 0px 7px;padding:0px;border:0px;vertical-align:baseline;background-color:rgb(255,255,255);text-align:left"><p style="margin:0px 0px 1em;padding:0px;border:0px;font-size:11px;vertical-align:baseline;clear:both;word-wrap:break-word;font-family:Arial,'Liberation Sans','DejaVu Sans',sans-serif;font-weight:normal;line-height:14px">
I'm working on code very similar to this:</p><p style="margin:0px 0px 1em;padding:0px;border:0px;font-size:11px;vertical-align:baseline;clear:both;word-wrap:break-word;font-family:Arial,'Liberation Sans','DejaVu Sans',sans-serif;font-weight:normal;line-height:14px">
<a href="http://xcb.freedesktop.org/opengl/" rel="nofollow" style="margin:0px;padding:0px;border:0px;vertical-align:baseline;background-color:transparent;color:rgb(74,107,130);text-decoration:none">http://xcb.freedesktop.org/opengl/</a></p>
<p style="margin:0px 0px 1em;padding:0px;border:0px;font-size:11px;vertical-align:baseline;clear:both;word-wrap:break-word;font-weight:normal;line-height:14px"><span style="font-family:Arial,'Liberation Sans','DejaVu Sans',sans-serif">It works fine when I use the default framebuffer configuration, although when I try to query a certain one it fails. I've determined that it fails whenever VISUAL_ID (</span><font face="Consolas, Menlo, Monaco, Lucida Console, Liberation Mono, DejaVu Sans Mono, Bitstream Vera Sans Mono, Courier New, monospace, serif">visualID</font><font face="Arial, Liberation Sans, DejaVu Sans, sans-serif"> in the example code) and </font><font face="Consolas, Menlo, Monaco, Lucida Console, Liberation Mono, DejaVu Sans Mono, Bitstream Vera Sans Mono, Courier New, monospace, serif">screen->root_visual </font><font face="Arial, Liberation Sans, DejaVu Sans, sans-serif">are different values.</font></p>
<p style="margin:0px 0px 1em;padding:0px;border:0px;font-size:11px;vertical-align:baseline;clear:both;word-wrap:break-word;font-weight:normal;line-height:14px"><font face="Arial, Liberation Sans, DejaVu Sans, sans-serif">For instance, changing</font></p>
<p style="margin:0px 0px 1em;padding:0px;border:0px;font-size:11px;vertical-align:baseline;clear:both;word-wrap:break-word;font-weight:normal;line-height:14px"><font face="Arial, Liberation Sans, DejaVu Sans, sans-serif">GLXFBConfig fb_config = fbconfigs[0];</font></p>
<p style="margin:0px 0px 1em;padding:0px;border:0px;font-size:11px;vertical-align:baseline;clear:both;word-wrap:break-word;font-weight:normal;line-height:14px"><font face="Arial, Liberation Sans, DejaVu Sans, sans-serif">to</font></p>
<p style="margin:0px 0px 1em;padding:0px;border:0px;font-size:11px;vertical-align:baseline;clear:both;word-wrap:break-word;font-weight:normal;line-height:14px"><font face="Arial, Liberation Sans, DejaVu Sans, sans-serif">GLXFBConfig fb_config = fb_configs[1];</font></p>
<p style="margin:0px 0px 1em;padding:0px;border:0px;font-size:11px;vertical-align:baseline;clear:both;word-wrap:break-word;font-weight:normal;line-height:14px"><font face="Arial, Liberation Sans, DejaVu Sans, sans-serif">doesn't work.</font></p>
<p style="margin:0px 0px 1em;padding:0px;border:0px;font-size:11px;vertical-align:baseline;clear:both;word-wrap:break-word;font-family:Arial,'Liberation Sans','DejaVu Sans',sans-serif;font-weight:normal;line-height:14px">
Here is the error message:</p><p style="margin:0px 0px 1em;padding:0px;border:0px;vertical-align:baseline;clear:both;word-wrap:break-word"></p><p style="margin:0px 0px 1em;padding:0px;border:0px;vertical-align:baseline;clear:both;word-wrap:break-word">
<font face="Arial, Liberation Sans, DejaVu Sans, sans-serif"><span style="font-size:11px;font-weight:normal;line-height:14px">X Error of failed request: BadWindow (invalid Window parameter)</span></font></p><p style="margin:0px 0px 1em;padding:0px;border:0px;vertical-align:baseline;clear:both;word-wrap:break-word">
<span style="font-size:11px;font-weight:normal;line-height:14px;font-family:Arial,'Liberation Sans','DejaVu Sans',sans-serif"> Major opcode of failed request: 135 (GLX)</span></p><p style="margin:0px 0px 1em;padding:0px;border:0px;vertical-align:baseline;clear:both;word-wrap:break-word">
<font face="Arial, Liberation Sans, DejaVu Sans, sans-serif"><span style="font-size:11px;font-weight:normal;line-height:14px"> Minor opcode of failed request: 31 (X_GLXCreateWindow)</span></font></p><p style="margin:0px 0px 1em;padding:0px;border:0px;vertical-align:baseline;clear:both;word-wrap:break-word">
<font face="Arial, Liberation Sans, DejaVu Sans, sans-serif"><span style="font-size:11px;font-weight:normal;line-height:14px"> Resource id in failed request: 0x1800003</span></font></p><p style="margin:0px 0px 1em;padding:0px;border:0px;vertical-align:baseline;clear:both;word-wrap:break-word">
<font face="Arial, Liberation Sans, DejaVu Sans, sans-serif"><span style="font-size:11px;font-weight:normal;line-height:14px"> Serial number of failed request: 32</span></font></p><p style="margin:0px 0px 1em;padding:0px;border:0px;vertical-align:baseline;clear:both;word-wrap:break-word">
<font face="Arial, Liberation Sans, DejaVu Sans, sans-serif"><span style="font-size:11px;font-weight:normal;line-height:14px"> Current serial number in output stream: 3</span></font></p><p></p><p style="margin:0px 0px 1em;padding:0px;border:0px;font-size:11px;vertical-align:baseline;clear:both;word-wrap:break-word;font-family:Arial,'Liberation Sans','DejaVu Sans',sans-serif;font-weight:normal;line-height:14px">
What can I do to fix this?</p><p style="margin:0px 0px 1em;padding:0px;border:0px;font-size:11px;vertical-align:baseline;clear:both;word-wrap:break-word;font-family:Arial,'Liberation Sans','DejaVu Sans',sans-serif;font-weight:normal;line-height:14px">
----</p><p style="margin:0px 0px 1em;padding:0px;border:0px;font-size:11px;vertical-align:baseline;clear:both;word-wrap:break-word;font-family:Arial,'Liberation Sans','DejaVu Sans',sans-serif;font-weight:normal;line-height:14px">
Many thanks,</p><p style="margin:0px 0px 1em;padding:0px;border:0px;font-size:11px;vertical-align:baseline;clear:both;word-wrap:break-word;font-family:Arial,'Liberation Sans','DejaVu Sans',sans-serif;font-weight:normal;line-height:14px">
Patrick</p></h1>