mirror of
https://github.com/WinampDesktop/winamp.git
synced 2025-06-22 12:15:39 -04:00
NoGUI: Don't ignore pause on focus loss setting
This commit is contained in:
@ -308,7 +308,7 @@ void SDLHostInterface::HandleSDLEvent(const SDL_Event* event)
|
|||||||
|
|
||||||
case SDL_WINDOWEVENT_FOCUS_LOST:
|
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);
|
PauseSystem(true);
|
||||||
m_was_paused_by_focus_loss = true;
|
m_was_paused_by_focus_loss = true;
|
||||||
|
Reference in New Issue
Block a user