Mercurial > hg > openjdk > jdk8u > jdk
changeset 13441:d56017f2c647
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
author | phh |
---|---|
date | Fri, 22 Feb 2019 18:02:57 +0000 |
parents | 3bb8137f36a8 |
children | c763f8d25eac |
files | src/solaris/native/sun/xawt/XToolkit.c |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/solaris/native/sun/xawt/XToolkit.c Tue Dec 04 17:54:13 2018 +0100 +++ b/src/solaris/native/sun/xawt/XToolkit.c Fri Feb 22 18:02:57 2019 +0000 @@ -154,6 +154,10 @@ 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; }