diff --git a/radiant/RadiantApp.cpp b/radiant/RadiantApp.cpp index a26c7aca1..4b63d4318 100644 --- a/radiant/RadiantApp.cpp +++ b/radiant/RadiantApp.cpp @@ -89,7 +89,15 @@ class RadiantApp::ArtProvider final: public wxArtProvider }; RadiantApp::RadiantApp() -{} +{ +#if defined(__linux__) + // The native Wayland backend for GTK does not implement the mouse pointer + // warping functions used in the FreezePointer class. Forcing the backend + // to X11 will let us run using XWayland which does provide emulation of + // this functionality. + setenv("GDK_BACKEND", "x11", 0); +#endif +} RadiantApp::~RadiantApp() {}