eclipse/prefer_x11_backend.patch

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);