Permalink
Browse files

jsonrpc: add GUI.OnScreensaver(Activated|Deactivated) notifications (…

…closes #10937)
  • Loading branch information...
1 parent 63cba75 commit c16324bdea406c38708423e860cf777d055620b3 @Montellese Montellese committed Jun 30, 2011
Showing with 4 additions and 0 deletions.
  1. +4 −0 xbmc/Application.cpp
View
@@ -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)

0 comments on commit c16324b

Please sign in to comment.