aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormontellese <montellese@xbmc.org>2011-06-30 15:03:20 +0200
committermontellese <montellese@xbmc.org>2011-06-30 15:05:05 +0200
commitc16324bdea406c38708423e860cf777d055620b3 (patch)
tree0fbeea196beb08bb3e0ba7c8d9795de10bf7d927
parent63cba75a76563554d10bda3a56eb4e5819d158e5 (diff)
jsonrpc: add GUI.OnScreensaver(Activated|Deactivated) notifications (closes #10937)
-rw-r--r--xbmc/Application.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/xbmc/Application.cpp b/xbmc/Application.cpp
index 8a277d48ce..5f0d477598 100644
--- a/xbmc/Application.cpp
+++ b/xbmc/Application.cpp
@@ -4200,6 +4200,8 @@ bool CApplication::WakeUpScreenSaver()
m_iScreenSaveLock = 0;
ResetScreenSaverTimer();
+ CAnnouncementManager::Announce(GUI, "xbmc", "OnScreensaverDeactivated");
+
if (m_screenSaver->ID() == "visualization" || m_screenSaver->ID() == "screensaver.xbmc.builtin.slideshow")
{
// we can just continue as usual from vis mode
@@ -4283,6 +4285,8 @@ void CApplication::ActivateScreenSaver(bool forceType /*= false */)
g_lcd->SetBackLight(0);
#endif
+ CAnnouncementManager::Announce(GUI, "xbmc", "OnScreensaverActivated");
+
// disable screensaver lock from the login screen
m_iScreenSaveLock = g_windowManager.GetActiveWindow() == WINDOW_LOGIN_SCREEN ? 1 : 0;
if (!forceType)