提交 ba6c1ea6 编写于 作者: P phh

8215364: JavaFX crashes on Ubuntu 18.04 with Wayland while using Swing-FX interop

Summary: Set the gtk backend to x11 on all systems
Reviewed-by: prr, kcr
上级 03461177
......@@ -154,6 +154,10 @@ JNIEXPORT jint JNICALL
JNI_OnLoad(JavaVM *vm, void *reserved)
{
jvm = vm;
//Set the gtk backend to x11 on all the systems
putenv("GDK_BACKEND=x11");
return JNI_VERSION_1_2;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册