<div dir="ltr"><div dir="ltr">Hello Xorg list,<div><br></div><div>When using mesa, my Qt OpenGL based application has some transparency issue.</div><div>The OpenGL rendering zone is transparent but it should not be.</div><div><br></div><div>XLIB_SKIP_ARGB_VISUALS seems to fix the issue but I wonder how I could specify this in the c++ code instead as in the environnement.</div><div><br></div><div>Regarding the Xorg documentation :</div><div><h3 style="font-family:"Times New Roman""><font color="#666666" size="2">5.3. Composite exposes extra visuals</font></h3><p style="font-family:"Times New Roman""><font color="#666666">When the Composite extension is enabled via <code>xorg.conf</code> or the command line, a new visual is created. This visual is different from the other visuals used by X applications in that it includes an alpha component. It is used by the compositing manager and other Composite aware applications.</font></p><p style="font-family:"Times New Roman""><font color="#666666">Most X applications ignore this visual since it is not useful to them; however some applications mistakenly try to use it, which will cause them to fail. An environment variable, <code>XLIB_SKIP_ARGB_VISUALS</code>, was added to the X11 library to hide this visual from applications that mistakenly try to use it. If an application fails only when the Composite is enabled, try setting this environment variable before starting the application.</font></p><p style="font-family:"Times New Roman""><font color="#666666" style="">Since Composite is not enabled by default, it is not expected that this issue will be visible to most users.</font></p><p style="">My question would be : How to programmatic ally ensure that my Qt application does not mistakenly try to use the extra composite visual.</p><p style="">Thanks,<br></p><p style="color:rgb(0,0,0);font-family:"Times New Roman";font-size:medium"><span style="font-family:Arial,Helvetica,sans-serif;font-size:small;color:rgb(34,34,34)">Mathieu Westphal</span><br></p></div></div></div>