Qt: Fix Wayland workarounds not applying

Forcing XWayland is almost a better option than this garbage.
This commit is contained in:
Stenzek
2026-01-03 21:02:26 +10:00
parent ae1bd270c7
commit 5c53fba912

View File

@@ -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();