<div dir="ltr">Hello, I am not 100% sure if this is the right mailing list, but I will give it a try.<div><br></div><div>My Xwayland (x11 and Wayland in DISTRO_FEATURES) environment is not providing the right X11 environment for my (legacy) X11 application.</div><div><br></div><div>In the platform definition file (/usr/include/EGL/eglplatform.h), there are a set of definitions for a few platforms including X11:</div><div><div><div><div><br></div><div>    /* X11 (tentative)  */</div><div>    #include &lt;X11/Xlib.h&gt;</div><div>    #include &lt;X11/Xutil.h&gt;</div><div><br></div><div>    typedef Display *EGLNativeDisplayType;</div><div>    typedef Pixmap   EGLNativePixmapType;</div><div>    typedef Window   EGLNativeWindowType;</div></div><div><br></div><div><div><br></div><div><div>However on my system fall back is used:</div><div><br></div><div>    /* NULLWS fallback */</div><div><br></div><div>    #if defined(_WIN64) ||  __WORDSIZE == 64</div><div>    typedef khronos_int64_t EGLNativeDisplayType;</div><div>    #else</div><div>    typedef int EGLNativeDisplayType;</div><div>    #endif</div><div><br></div><div>    typedef void*   EGLNativePixmapType;</div><div>    typedef void*   EGLNativeWindowType;</div></div></div></div><br></div><div>As evidenced below:</div><div><br></div><div><div>    type = int</div><div>    (gdb) whatis EGLNativeDisplayType</div><div>    type = int</div><div>    (gdb) whatis EGLNativeWindowType</div><div>    type = void *</div></div><div><br></div><div>I am not versed with EGL / X11 API, but I believe this may be happening because my graphics stack (TI&#39;s AM57xx SoC with SGX) only supports Wayland, and not X11, out of the box.</div><div>It appears that X11 is supported by another package (XSGX) from TI, but I don&#39;t believe using XSGX is the solution here as it is no longer endorsed as the default in TI SDK.</div><div><br></div><div>Now I should also note that the platform definition (/usr/include/eglplatform.h) does not have an entry for Wayland. I see Win32, WinCE, X11 and the NULLWS fallback.</div><div><br></div><div>Given the context of running X11 applications via XWayland, X11 is still the right platform definitions, and not NULLWS in my opinion.</div><div>If so, how do I correct this problem? </div><div><br></div><div>Any tips will be appreciated,</div><div><br></div><div>Adam</div><div><br></div></div>