upgpkg: ufw 0.36.2-1
[ArchLinux/community.git] / superslicer / trunk / superslicer-wxgtk3-wayland.patch
blobb0371b4159a6e594412bcf6f88c484e06517f368
1 diff --git a/src/slic3r/GUI/GUI.cpp b/src/slic3r/GUI/GUI.cpp
2 index 4e85967a5..f141aabb5 100644
3 --- a/src/slic3r/GUI/GUI.cpp
4 +++ b/src/slic3r/GUI/GUI.cpp
5 @@ -35,6 +35,16 @@
7 namespace Slic3r { namespace GUI {
9 +// wxgtk3 is broken on wayland: https://trac.wxwidgets.org/ticket/17702
10 +#ifdef __WXGTK3__
11 +struct ForceX11 {
12 + ForceX11() {
13 + setenv("GDK_BACKEND", "x11", 1);
14 + }
15 +};
16 +static struct ForceX11 forcex11;
17 +#endif
19 #if __APPLE__
20 IOPMAssertionID assertionID;
21 #endif