Merge pull request #4623 from FernetMenta/background
authorjmarshallnz <jcmarsha@gmail.com>
Fri, 2 May 2014 06:04:10 +0000 (18:04 +1200)
committerJonathan Marshall <jmarshall@xbmc.org>
Fri, 2 May 2014 23:49:40 +0000 (11:49 +1200)
Revert "[WIN32] changed: set background mode when minimized. prevents sc...

xbmc/Application.cpp
xbmc/windowing/windows/WinEventsWin32.cpp

index 203e69d..b7eaca3 100644 (file)
@@ -5196,6 +5196,11 @@ void CApplication::ProcessSlow()
 
   CAEFactory::GarbageCollect();
 
+  // if we don't render the gui there's no reason to start the screensaver.
+  // that way the screensaver won't kick in if we maximize the XBMC window
+  // after the screensaver start time.
+  if(!m_renderGUI)
+    ResetScreenSaverTimer();
 }
 
 // Global Idle Time in Seconds
index e3a4638..5933fd8 100644 (file)
@@ -473,10 +473,7 @@ LRESULT CALLBACK CWinEventsWin32::WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, L
           }
         }
         if (g_application.GetRenderGUI() != active)
-        {
           g_Windowing.NotifyAppActiveChange(g_application.GetRenderGUI());
-          g_application.SetInBackground(!g_application.GetRenderGUI());
-        }
         CLog::Log(LOGDEBUG, __FUNCTION__"Window is %s", g_application.GetRenderGUI() ? "active" : "inactive");
       }
       break;