aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjmarshallnz <jcmarsha@gmail.com>2014-05-02 18:04:10 +1200
committerjmarshallnz <jcmarsha@gmail.com>2014-05-02 18:04:10 +1200
commit7bffdd1daf440c4fda8470a06246d6a30fdc68b4 (patch)
tree941cf0b8846bb1ffc59bfd053b4ef269119f63f5
parent15f9dd6fdbc127017dc9e15118d7db511160cf54 (diff)
parent03a9b198caf2efaa40d5ba87e8f57bc58d744bb2 (diff)
Merge pull request #4623 from FernetMenta/background
Revert "[WIN32] changed: set background mode when minimized. prevents sc...
-rw-r--r--xbmc/Application.cpp5
-rw-r--r--xbmc/windowing/windows/WinEventsWin32.cpp3
2 files changed, 5 insertions, 3 deletions
diff --git a/xbmc/Application.cpp b/xbmc/Application.cpp
index c5d2206109..42607dc73f 100644
--- a/xbmc/Application.cpp
+++ b/xbmc/Application.cpp
@@ -5210,6 +5210,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
diff --git a/xbmc/windowing/windows/WinEventsWin32.cpp b/xbmc/windowing/windows/WinEventsWin32.cpp
index e3a46387b0..5933fd8d59 100644
--- a/xbmc/windowing/windows/WinEventsWin32.cpp
+++ b/xbmc/windowing/windows/WinEventsWin32.cpp
@@ -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;