Search code examples
javajava-native-interfacexlib

jni xlib Window handle


using jawt jni library in the jdk, I can draw from C on an AWT canvas...

however what I need is an Xlib Window handle

the jawt_X11DrawingSurfaceInfo struct provides an xlib VisualID handle, can this be turned into a Window handle?


Solution

  • Looking at JNA library source, they're using drawable field in JAWT_X11DrawingSurfaceInfo to return window handle for xlib.