mirror of
https://github.com/WinampDesktop/winamp.git
synced 2025-05-06 14:55:42 -04:00
NoGUI: Don't ignore pause on focus loss setting
This commit is contained in:
parent
c417bd7a35
commit
c4348beed4
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user