From c4348beed4e0757810eaaf46559362e91a6731ba Mon Sep 17 00:00:00 2001 From: Connor McLaughlin Date: Thu, 20 May 2021 15:09:54 +1000 Subject: [PATCH] NoGUI: Don't ignore pause on focus loss setting --- src/duckstation-nogui/sdl_host_interface.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/duckstation-nogui/sdl_host_interface.cpp b/src/duckstation-nogui/sdl_host_interface.cpp index c74413950..565ae98d5 100644 --- a/src/duckstation-nogui/sdl_host_interface.cpp +++ b/src/duckstation-nogui/sdl_host_interface.cpp @@ -308,7 +308,7 @@ void SDLHostInterface::HandleSDLEvent(const SDL_Event* event) case SDL_WINDOWEVENT_FOCUS_LOST: { - if (!m_was_paused_by_focus_loss && !System::IsPaused()) + if (g_settings.pause_on_focus_loss && System::IsRunning() && !m_was_paused_by_focus_loss) { PauseSystem(true); m_was_paused_by_focus_loss = true;