Revert "[WIN32] changed: set background mode when minimized. prevents screen saver...
authorRainer Hochecker <fernetmenta@online.de>
Wed, 30 Apr 2014 05:59:51 +0000 (07:59 +0200)
committerRainer Hochecker <fernetmenta@online.de>
Wed, 30 Apr 2014 05:59:51 +0000 (07:59 +0200)
This reverts commit 872d58c73dcb40f5f7bf71a2d1e4509e676f07e0.

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

index bb01755..67928d8 100644 (file)
@@ -5207,6 +5207,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;