NoGUI: Don't ignore pause on focus loss setting

This commit is contained in:
Connor McLaughlin 2021-05-20 15:09:54 +10:00
parent c417bd7a35
commit c4348beed4
1 changed files with 1 additions and 1 deletions

View File

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