From cdc3352318b4c59f674b587e57644c481083ab4a Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Wed, 26 Jan 2022 19:00:41 -0600 Subject: [PATCH] Ensure SDL also uses X11 if Qt is using X11 --- app/main.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/app/main.cpp b/app/main.cpp index 35696df6..c4ea431d 100644 --- a/app/main.cpp +++ b/app/main.cpp @@ -466,6 +466,7 @@ int main(int argc, char *argv[]) if (WMUtils::isRunningWayland() && QGuiApplication::platformName() == "xcb") { SDL_LogWarn(SDL_LOG_CATEGORY_APPLICATION, "Detected XWayland. This will probably break hardware decoding! Try running with QT_QPA_PLATFORM=wayland or switch to X11."); + qputenv("SDL_VIDEODRIVER", "x11"); } else if (QGuiApplication::platformName().startsWith("wayland")) { SDL_LogInfo(SDL_LOG_CATEGORY_APPLICATION, "Detected Wayland");