Qt: Fix exit on separate window close with FSUI active

pull/3498/head
Stenzek 3 months ago
parent a2222d805b
commit d2caabd04a
No known key found for this signature in database

@ -139,7 +139,7 @@ void DisplayWidget::handleCloseEvent(QCloseEvent* event)
// In the latter case, it's going to destroy us, so don't let Qt do it first.
// Treat a close event while fullscreen as an exit, that way ALT+F4 closes DuckStation,
// rather than just the game.
if (QtHost::IsSystemValidOrStarting() && !isActuallyFullscreen())
if ((QtHost::IsSystemValidOrStarting() || QtHost::IsFullscreenUIStarted()) && !isActuallyFullscreen())
{
QMetaObject::invokeMethod(g_main_window, "requestShutdown", Qt::QueuedConnection, Q_ARG(bool, true),
Q_ARG(bool, true), Q_ARG(bool, false), Q_ARG(bool, true), Q_ARG(bool, true),

Loading…
Cancel
Save