Skip to content

Commit

Permalink
Force GDK backend to X11 on Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
jonri committed Mar 22, 2024
1 parent ee57da9 commit cbda483
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion radiant/RadiantApp.cpp
Expand Up @@ -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()
{}
Expand Down

0 comments on commit cbda483

Please sign in to comment.