Obtaining wayland-type Native Window from Xwayland
Hello.
I have a very specific task: to render directly onto AWT Canvas.
For that I am using JAWT to obtain the Display and Surface associated with that Canvas.
Under X11, it works fine. Under Wayland - it doesn't, because to my understanding under Wayland AWT works through XWayland client, and that client doesn't have a "real" Native Window and Display. I have some pointers returned to me, but I cannot initialize EGL from that.
So, what I have is: Xwayland-type Display; Xwayland-type Native Window.
What I need is: Wayland-type Display. I can get it by simply obtaining the default wayland display, because it's a 1-screen system anyway. Wayland-type Native Window associated with my AWT Element (Canvas) which is in turn an X11/XWayland client. Alternatively, a wl-surface associated with the Canvas should suffice, but I also can't figure out how to obtain it.
Can you point me in a right direction? Please help!