From 2e95667ec26fd32b6622e46aef9118f9e15c814d Mon Sep 17 00:00:00 2001 From: Stenzek Date: Tue, 14 Jan 2025 20:46:31 +1000 Subject: [PATCH] Qt: Fix returning to desktop mode from Big Picture --- src/duckstation-qt/qthost.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/duckstation-qt/qthost.cpp b/src/duckstation-qt/qthost.cpp index 1f753a599..6eaa30538 100644 --- a/src/duckstation-qt/qthost.cpp +++ b/src/duckstation-qt/qthost.cpp @@ -765,6 +765,11 @@ void EmuThread::stopFullscreenUI() if (m_is_fullscreen_ui_started) { + // Need to switch out of fullscreen before stopping the fullscreen UI, otherwise Qt + // terminates the applcation because briefly there are no windows remaining. + if (m_is_fullscreen) + setFullscreen(false, true); + GPUThread::StopFullscreenUI(); m_is_fullscreen_ui_started = false; emit fullscreenUIStartedOrStopped(false);