diff --git a/src/app/main.cpp b/src/app/main.cpp index d21d997e00863..28692ba165725 100644 --- a/src/app/main.cpp +++ b/src/app/main.cpp @@ -98,6 +98,11 @@ int main(int argc, char** argv) if (qEnvironmentVariable("QT_QPA_PLATFORM") != "offscreen") { qputenv("QT_QPA_PLATFORMTHEME", "gtk3"); } + + //! NOTE Forced X11, with Wayland there are a number of problems now + if (qEnvironmentVariable("QT_QPA_PLATFORM") == "") { + qputenv("QT_QPA_PLATFORM", "xcb"); + } #endif #ifdef Q_OS_WIN