]> git.xonotic.org Git - xonotic/netradiant.git/commitdiff
Disable wayland backend on Linux and BSD
authorAntoine Fontaine <antoine.fontaine@epfl.ch>
Fri, 26 Mar 2021 18:30:35 +0000 (19:30 +0100)
committerAntoine Fontaine <antoine.fontaine@epfl.ch>
Mon, 3 May 2021 23:03:43 +0000 (01:03 +0200)
Better rely on XWayland for now. If someone wants to override it, set
GDK_BACKEND=wayland

radiant/main.cpp

index ff141f6f529a436a3441584aa54ce9b5fc77d7c0..3df10170085eddb32f17e53830fa55b3495ad5dc 100644 (file)
@@ -506,7 +506,10 @@ int main( int argc, char* argv[] ){
 #if GTK_TARGET == 3
        // HACK: force legacy GL backend as we don't support GL3 yet
        setenv("GDK_GL", "LEGACY", 0);
+#if GDEF_OS_LINUX || GDEF_OS_BSD
+       setenv("GDK_BACKEND", "x11", 0);
 #endif
+#endif // GTK_TARGET == 3
        crt_init();
 
        streams_init();