Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Williams2017-12-19 17:54:00 +0000
committerEric Williams2017-12-22 13:40:40 +0000
commit9913c5a1d7242c20e4a6f4f111e4d54e5569991f (patch)
treece59c217d55ca8267c10c83096b39e638b5ce428 /bundles/org.eclipse.swt/Eclipse SWT PI/gtk
parentfe1bfd480258bcca1c39811ee98e2f7691a0fe83 (diff)
downloadeclipse.platform.swt-9913c5a1d7242c20e4a6f4f111e4d54e5569991f.tar.gz
eclipse.platform.swt-9913c5a1d7242c20e4a6f4f111e4d54e5569991f.tar.xz
eclipse.platform.swt-9913c5a1d7242c20e4a6f4f111e4d54e5569991f.zip
Bug 528968: [Wayland] JVM crashes when running JUnit tests on Wayland
Guard call to takeScreenshot() so that running the SWT JUnit tests doesn't crash the JVM on Wayland. Change-Id: I0ea725a491dfc1f7781ccd647b706e5a5517fc59 Signed-off-by: Eric Williams <ericwill@redhat.com>
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT PI/gtk')
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/OS.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/OS.java b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/OS.java
index 409fd3dc1c..b640eb49a6 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/OS.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/OS.java
@@ -749,6 +749,10 @@ public class OS extends C {
System.setProperty("org.eclipse.swt.internal.gtk.version",
(GTK_VERSION >>> 16) + "." + (GTK_VERSION >>> 8 & 0xFF) + "." + (GTK_VERSION & 0xFF));
+ // set GDK backend if we are on X11
+ if (isX11()) {
+ System.setProperty("org.eclipse.swt.internal.gdk.backend", "x11");
+ }
}
protected static byte [] ascii (String name) {

Back to the top