Qt: Fix Wayland workarounds not applying

Forcing XWayland is almost a better option than this garbage.
pull/3675/head v0.1-10530
Stenzek 2 months ago
parent ae1bd270c7
commit 5c53fba912
No known key found for this signature in database

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

Loading…
Cancel
Save