tkurbad-overlay/media-gfx/orcaslicer/files/orcaslicer-2.0.0-wxgtk3-wayland-fix.patch

21 lines
594 B
Diff
Raw Permalink Normal View History

2024-07-02 11:21:31 +02:00
diff '--color=auto' -urN OrcaSlicer-2.0.0.orig/src/slic3r/GUI/GUI.cpp OrcaSlicer-2.0.0/src/slic3r/GUI/GUI.cpp
--- OrcaSlicer-2.0.0.orig/src/slic3r/GUI/GUI.cpp 2024-03-30 03:10:30.000000000 +0100
+++ OrcaSlicer-2.0.0/src/slic3r/GUI/GUI.cpp 2024-06-28 10:28:35.591515129 +0200
@@ -36,6 +36,16 @@
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