diff --git a/Engine/source/app/mainLoop.cpp b/Engine/source/app/mainLoop.cpp index 7e9034699..763dc1118 100644 --- a/Engine/source/app/mainLoop.cpp +++ b/Engine/source/app/mainLoop.cpp @@ -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 { diff --git a/Engine/source/windowManager/sdl/sdlWindow.cpp b/Engine/source/windowManager/sdl/sdlWindow.cpp index d1191e0d4..c50442eef 100644 --- a/Engine/source/windowManager/sdl/sdlWindow.cpp +++ b/Engine/source/windowManager/sdl/sdlWindow.cpp @@ -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()