eclipse/prefer_x11_backend.patch
Mat Booth 646e9715ea Fix build with new Glassfish EL packages
- Patch to prefer x11 until wayland support improves
2016-10-14 00:14:41 +01:00

15 lines
539 B
Diff

--- rt.equinox.framework/features/org.eclipse.equinox.executable.feature/library/gtk/eclipseGtkInit.c.orig 2016-10-13 16:53:39.092748697 +0100
+++ rt.equinox.framework/features/org.eclipse.equinox.executable.feature/library/gtk/eclipseGtkInit.c 2016-10-13 17:01:12.350231281 +0100
@@ -122,6 +122,11 @@
setenv("OXYGEN_DISABLE_INNER_SHADOWS_HACK", "1", 0);
}
+ char *gdkBackend = getenv("GDK_BACKEND");
+ if (gdkBackend == NULL) {
+ setenv("GDK_BACKEND", "x11", 0);
+ }
+
/* Disable GTK scaling*/
setenv("GDK_SCALE", "1", 1);