Qt: Fix returning to desktop mode from Big Picture

This commit is contained in:
Stenzek 2025-01-14 20:46:31 +10:00
parent bbb1befa43
commit 2e95667ec2
No known key found for this signature in database
1 changed files with 5 additions and 0 deletions

View File

@ -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);