From 024204ab24feb27672f8f4c7a486256629c8268e Mon Sep 17 00:00:00 2001 From: Spike29 Date: Sun, 21 Jul 2024 01:55:29 +0200 Subject: [PATCH] Disable the wayland backend on Linux by default --- radiant/main.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/radiant/main.cpp b/radiant/main.cpp index e64e534e..6e9dd705 100644 --- a/radiant/main.cpp +++ b/radiant/main.cpp @@ -401,6 +401,13 @@ void remove_local_pid(){ int main( int argc, char* argv[] ){ +#ifdef __linux__ + // Mouse pointer warping functions do not work with the Wayland backend. + // Forcing the backend to X11 will let us run using XWayland + // which does provide emulation of this functionality. + setenv("QT_QPA_PLATFORM", "xcb", 0); +#endif + crt_init(); streams_init();