|
|
|
@ -123,23 +123,24 @@ static GLFWbool chooseEGLConfig(const _GLFWctxconfig* ctxconfig, |
|
|
|
|
continue; |
|
|
|
|
|
|
|
|
|
#if defined(_GLFW_X11) |
|
|
|
|
XVisualInfo vi = {0}; |
|
|
|
|
{ |
|
|
|
|
XVisualInfo vi = {0}; |
|
|
|
|
|
|
|
|
|
// Only consider EGLConfigs with associated Visuals
|
|
|
|
|
vi.visualid = getEGLConfigAttrib(n, EGL_NATIVE_VISUAL_ID); |
|
|
|
|
if (!vi.visualid) |
|
|
|
|
continue; |
|
|
|
|
// Only consider EGLConfigs with associated Visuals
|
|
|
|
|
vi.visualid = getEGLConfigAttrib(n, EGL_NATIVE_VISUAL_ID); |
|
|
|
|
if (!vi.visualid) |
|
|
|
|
continue; |
|
|
|
|
|
|
|
|
|
if (desired->transparent) |
|
|
|
|
{ |
|
|
|
|
int count; |
|
|
|
|
XVisualInfo* vis = XGetVisualInfo(_glfw.x11.display, |
|
|
|
|
VisualIDMask, &vi, |
|
|
|
|
&count); |
|
|
|
|
if (vis) |
|
|
|
|
if (desired->transparent) |
|
|
|
|
{ |
|
|
|
|
u->transparent = _glfwIsVisualTransparentX11(vis[0].visual); |
|
|
|
|
XFree(vis); |
|
|
|
|
int count; |
|
|
|
|
XVisualInfo* vis = |
|
|
|
|
XGetVisualInfo(_glfw.x11.display, VisualIDMask, &vi, &count); |
|
|
|
|
if (vis) |
|
|
|
|
{ |
|
|
|
|
u->transparent = _glfwIsVisualTransparentX11(vis[0].visual); |
|
|
|
|
XFree(vis); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
#endif // _GLFW_X11
|
|
|
|
|