mirror of
https://github.com/stenzek/duckstation.git
synced 2026-02-15 19:04:37 +00:00
Qt: Fix Wayland workarounds not applying
Forcing XWayland is almost a better option than this garbage.
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user