From d2e4eaed7cd9687b613c174ed32b8a0676018ec8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ball=C3=B3=20Gy=C3=B6rgy?= Date: Thu, 2 Jul 2026 12:07:51 +0200 Subject: [PATCH] Force xcb backend even if QT_QPA_PLATFORM is already set This ensures that always the xcb backend is used. --- src/main.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 0dbcaf614..9c60bdd52 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -60,9 +60,7 @@ int main( int argc, char ** argv ) { #ifdef Q_OS_LINUX #if QT_VERSION >= 0x050600 - if (qgetenv("QT_QPA_PLATFORM").isEmpty()) { - qputenv("QT_QPA_PLATFORM", QByteArray("xcb")); - } + qputenv("QT_QPA_PLATFORM", QByteArray("xcb")); #endif #endif