diff --git a/src/duckstation-qt/qthost.cpp b/src/duckstation-qt/qthost.cpp index 970320321..a2b42e9f6 100644 --- a/src/duckstation-qt/qthost.cpp +++ b/src/duckstation-qt/qthost.cpp @@ -243,10 +243,6 @@ bool QtHost::VeryEarlyProcessStartup() } #endif -#ifdef __linux__ - ApplyWaylandWorkarounds(); -#endif - QGuiApplication::setHighDpiScaleFactorRoundingPolicy(Qt::HighDpiScaleFactorRoundingPolicy::PassThrough); return true; } @@ -3397,6 +3393,13 @@ int main(int argc, char* argv[]) if (!QtHost::PerformEarlyHardwareChecks()) return EXIT_FAILURE; +#ifdef __linux__ + // Normally we'd have this shitfuckery in VeryEarlyProcessStartup(), but QApplication needs to be + // created before the platform plugin is loaded. This is only here because GNOME plus Wankland + // and their implementation of it is fucking terrible. + QtHost::ApplyWaylandWorkarounds(); +#endif + // Type registration has to happen after hardware checks, clang emits ptest instructions otherwise. QtHost::RegisterTypes();