This commit is contained in:
dreamsyntax 2025-04-26 22:13:08 +03:00 committed by GitHub
commit 968076a9eb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -9,10 +9,6 @@
#include <Windows.h> #include <Windows.h>
#endif #endif
#ifdef __linux__
#include <cstdlib>
#endif
#include <OptionParser.h> #include <OptionParser.h>
#include <QAbstractEventDispatcher> #include <QAbstractEventDispatcher>
#include <QApplication> #include <QApplication>
@ -141,13 +137,6 @@ int main(int argc, char* argv[])
#endif #endif
#ifdef __linux__ #ifdef __linux__
// Qt 6.3+ has a bug which causes mouse inputs to not be registered in our XInput2 code.
// If we define QT_XCB_NO_XI2, Qt's xcb platform plugin no longer initializes its XInput
// code, which makes mouse inputs work again.
// For more information: https://bugs.dolphin-emu.org/issues/12913
#if (QT_VERSION >= QT_VERSION_CHECK(6, 3, 0))
setenv("QT_XCB_NO_XI2", "1", true);
#endif
// Dolphin currently doesn't work on Wayland (Only the UI does, games do not launch.) This makes // Dolphin currently doesn't work on Wayland (Only the UI does, games do not launch.) This makes
// XCB the default and forces it on if the platform is specified to be wayland, to prevent this // XCB the default and forces it on if the platform is specified to be wayland, to prevent this
// from happening. // from happening.