File prefer_x11_backend.patch of Package eclipse.32874

--- rt.equinox.framework/features/org.eclipse.equinox.executable.feature/library/gtk/eclipseGtkInit.c.orig	2018-08-22 15:19:04.602623018 +0100
+++ rt.equinox.framework/features/org.eclipse.equinox.executable.feature/library/gtk/eclipseGtkInit.c	2018-08-22 15:20:03.453348722 +0100
@@ -114,6 +114,11 @@
 #define DLFLAGS RTLD_LAZY
 #endif
 
+	char *gdkBackend = getenv("GDK_BACKEND");
+	if (gdkBackend == NULL) {
+		setenv("GDK_BACKEND", "x11", 0);
+	}
+
 	void *gioLib = NULL, *glibLib = NULL, *gdkLib = NULL, *gtkLib = NULL, *objLib = NULL, *pixLib = NULL;
 	
 	gdkLib = dlopen(GDK3_LIB, DLFLAGS);
openSUSE Build Service is sponsored by