I note that IntelliJ IDEA renders using wayland on...
# intellij
l
I note that IntelliJ IDEA renders using wayland on Linux. But it's also a Swing application, is it not? How do they do that? Did they implement their own wayland backend for AWT? Is there a way for me to write a Swing application that uses whatever mechanism they use to render to wayland?
e
use JBR
l
@ephemient thanks, but I still wonder how it actually works. IntelliJ IDEA today (when using the does not rely on xwayland, so presumably they render directly using wayland. Expecially given the fact that the name of the toolkit used is called
WLToolkit
. I don't know if this is default yet, but you can enable it with
-Dawt.toolkit.name=WLToolkit
.
But the project wakefield website that presumably tracks this hasn't been updated in about 2 years?
I just want to use WLToolkit in my own project.
e
JBR has all the work that JB has done on Project Wakefield according to IntelliJ's needs. it's all open-source and eventually that should flow into OpenJDK as well but they seem to have done nothing with AWT in years
l
The WLToolkit renderer does work pretty well (and is, for example, the only way to get the F13 to F24 keys working). This is actually the reason I want it in my own project.
e
yes, and you can use JBR for your project just like IntelliJ does. https://github.com/JetBrains/JetBrainsRuntime
l
Oh wow. This looks interesting. Thanks a lot.