Skip to content

Commit d2caabd

Browse files
committed
Qt: Fix exit on separate window close with FSUI active
1 parent a2222d8 commit d2caabd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/duckstation-qt/displaywidget.cpp

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

0 commit comments

Comments
 (0)