Qt: Apply Wayland workarounds before creating QApplication

This commit is contained in:
Stenzek
2025-12-30 15:22:12 +10:00
parent fb932eb598
commit 4b02270c79

View File

@@ -243,16 +243,16 @@ bool QtHost::VeryEarlyProcessStartup()
}
#endif
#ifdef __linux__
ApplyWaylandWorkarounds();
#endif
QGuiApplication::setHighDpiScaleFactorRoundingPolicy(Qt::HighDpiScaleFactorRoundingPolicy::PassThrough);
return true;
}
bool QtHost::EarlyProcessStartup()
{
#ifdef __linux__
ApplyWaylandWorkarounds();
#endif
// redirect qt errors
qInstallMessageHandler(MessageOutputHandler);