From ad30641499e9db5c79722a4ff1180069a3ce3926 Mon Sep 17 00:00:00 2001 From: Glenn Smith Date: Sun, 4 Dec 2016 17:21:23 -0500 Subject: [PATCH] SDL/Mac report going into the background --- Engine/source/app/mainLoop.cpp | 4 ---- Engine/source/windowManager/sdl/sdlWindow.cpp | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) 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()