diff options
author | Dominic | 2020-04-21 19:15:00 +0200 |
---|---|---|
committer | Dominic | 2020-04-21 19:15:21 +0200 |
commit | 68ecf2b90c05824ef71ea49532b6df71b123a342 (patch) | |
tree | 61da518c4ce699bf8d213df9575cbd63cea5ba9b /0001-wxgtk3-is-broken-on-wayland.patch | |
parent | afc63c7efef85c976c7c23cabec190d78e74b931 (diff) | |
download | aur-68ecf2b90c05824ef71ea49532b6df71b123a342.tar.gz |
update to 2.2.49.0
Diffstat (limited to '0001-wxgtk3-is-broken-on-wayland.patch')
-rw-r--r-- | 0001-wxgtk3-is-broken-on-wayland.patch | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/0001-wxgtk3-is-broken-on-wayland.patch b/0001-wxgtk3-is-broken-on-wayland.patch new file mode 100644 index 000000000000..b0371b4159a6 --- /dev/null +++ b/0001-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 |