SDL/Mac report going into the background

This commit is contained in:
Glenn Smith 2016-12-04 17:21:23 -05:00
parent 4b25b59185
commit ad30641499
2 changed files with 1 additions and 5 deletions

View file

@ -604,15 +604,11 @@ bool StandardMainLoop::doMainLoop()
lastFocus = newFocus;
}
#ifndef TORQUE_OS_MAC
// under the web plugin do not sleep the process when the child window loses focus as this will cripple the browser perfomance
if (!Platform::getWebDeployment())
tm->setBackground(!newFocus);
else
tm->setBackground(false);
#else
tm->setBackground(false);
#endif
}
else
{

View file

@ -342,7 +342,7 @@ bool PlatformWindowSDL::isFocused()
if( flags & SDL_WINDOW_INPUT_FOCUS || flags & SDL_WINDOW_INPUT_GRABBED || flags & SDL_WINDOW_MOUSE_FOCUS )
return true;
return true;
return false;
}
bool PlatformWindowSDL::isMinimized()