Skip to content

Commit 4b02270

Browse files
committed
Qt: Apply Wayland workarounds before creating QApplication
1 parent fb932eb commit 4b02270

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/duckstation-qt/qthost.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -243,16 +243,16 @@ bool QtHost::VeryEarlyProcessStartup()
243243
}
244244
#endif
245245

246+
#ifdef __linux__
247+
ApplyWaylandWorkarounds();
248+
#endif
249+
246250
QGuiApplication::setHighDpiScaleFactorRoundingPolicy(Qt::HighDpiScaleFactorRoundingPolicy::PassThrough);
247251
return true;
248252
}
249253

250254
bool QtHost::EarlyProcessStartup()
251255
{
252-
#ifdef __linux__
253-
ApplyWaylandWorkarounds();
254-
#endif
255-
256256
// redirect qt errors
257257
qInstallMessageHandler(MessageOutputHandler);
258258

0 commit comments

Comments
 (0)