This repository has been archived on 2026-01-16. You can view files and clone it, but you cannot make any changes to its state, such as pushing and creating new issues, pull requests or comments.
3Depict/3Depict-0.0.22-wayland.patch

21 lines
493 B
Diff

diff -r 13113574c8fc src/3Depict.cpp
--- src/3Depict.cpp Sun Aug 11 23:16:43 2019 +0100
+++ src/3Depict.cpp Sun Aug 11 23:17:35 2019 +0100
@@ -76,6 +76,17 @@
};
+//Wayland workaround - wx bug 17702
+#ifdef __WXGTK3__
+struct ForceX11 {
+ ForceX11(){
+ setenv("GDK_BACKEND","x11",1);
+ }
+};
+
+static struct ForceX11 forcex11;
+#endif
+
//Check version is in place because wxT is deprecated for wx 2.9
//Command line parameter table
static const wxCmdLineEntryDesc g_cmdLineDesc [] =