diff options
author | Dominic | 2020-04-03 02:16:54 +0200 |
---|---|---|
committer | Dominic | 2020-04-03 02:17:39 +0200 |
commit | 98bfd21922b876166257c7334f8a844fe311769c (patch) | |
tree | 4e46ea796bf750344f7ca0300e8be38bb173bd87 /0002-wxgtk3-is-broken-on-wayland.patch | |
download | aur-98bfd21922b876166257c7334f8a844fe311769c.tar.gz |
version 2.2.47.1
Diffstat (limited to '0002-wxgtk3-is-broken-on-wayland.patch')
-rw-r--r-- | 0002-wxgtk3-is-broken-on-wayland.patch | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/0002-wxgtk3-is-broken-on-wayland.patch b/0002-wxgtk3-is-broken-on-wayland.patch new file mode 100644 index 000000000000..b0371b4159a6 --- /dev/null +++ b/0002-wxgtk3-is-broken-on-wayland.patch @@ -0,0 +1,21 @@ +diff --git a/src/slic3r/GUI/GUI.cpp b/src/slic3r/GUI/GUI.cpp +index 4e85967a5..f141aabb5 100644 +--- a/src/slic3r/GUI/GUI.cpp ++++ b/src/slic3r/GUI/GUI.cpp +@@ -35,6 +35,16 @@ + + namespace Slic3r { 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 |