summaryrefslogtreecommitdiff
blob: 5f6eb58740aebd629dea61475cd1cf80fcbe397a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
diff --git a/src/slic3r/GUI/GUI.cpp b/src/slic3r/GUI/GUI.cpp
index 330869f..70c472c 100644
--- a/src/slic3r/GUI/GUI.cpp
+++ b/src/slic3r/GUI/GUI.cpp
@@ -33,6 +33,16 @@ class AppConfig;
 
 namespace GUI {
 
+// wxgtk3 is broken on wayland: https://trac.wxwidgets.org/ticket/17702
+#ifdef __WXGTK3__
+struct ForceX11 {
+    ForceX11() {
+        setenv("GDK_BACKEND", "x11", 1);
+    }
+};
+static struct ForceX11 forcex11;
+#endif
+
 #if __APPLE__
 IOPMAssertionID assertionID;
 #endif