From: Antoine Fontaine Date: Fri, 26 Mar 2021 18:30:35 +0000 (+0100) Subject: Disable wayland backend on Linux and BSD X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=7abfd4e21a8a66400a4970b83f08d7856b67832e;p=xonotic%2Fnetradiant.git Disable wayland backend on Linux and BSD Better rely on XWayland for now. If someone wants to override it, set GDK_BACKEND=wayland --- diff --git a/radiant/main.cpp b/radiant/main.cpp index ff141f6f..3df10170 100644 --- a/radiant/main.cpp +++ b/radiant/main.cpp @@ -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();