changeset 11138:4b5124cce8cf

8210411: JavaFX crashes on Ubuntu 18.04 with Wayland Reviewed-by: kcr, mbilla
author pbansal
date Fri, 21 Dec 2018 12:10:17 +0530
parents e6bc74c5a1fa
children ab4db0272524
files modules/javafx.graphics/src/main/native-glass/gtk/launcher.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/modules/javafx.graphics/src/main/native-glass/gtk/launcher.c	Thu Dec 20 17:40:02 2018 -0800
+++ b/modules/javafx.graphics/src/main/native-glass/gtk/launcher.c	Fri Dec 21 12:10:17 2018 +0530
@@ -191,6 +191,9 @@
 
     gtk_versionDebug = verbose;
 
+    //Set the gtk backend to x11 on all the systems
+    putenv("GDK_BACKEND=x11");
+
     // Before doing anything with GTK we validate that the DISPLAY can be opened
     Display *display = XOpenDisplay(NULL);
     if (display == NULL) {