Skip to content

Commit

Permalink
Revert "[WIN32] fixed: enable system screensaver when loosing focus (c…
Browse files Browse the repository at this point in the history
…loses xbmc#13180)"

This reverts commit a6ca119.

Think before implement!
  • Loading branch information
WiSo authored and Mike committed Jul 25, 2012
1 parent 63bc114 commit 65afb59
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions xbmc/windowing/windows/WinEventsWin32.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -439,16 +439,6 @@ LRESULT CALLBACK CWinEventsWin32::WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, L
if (CWIN32Util::GetFocussedProcess(procfile))
CLog::Log(LOGDEBUG, __FUNCTION__": Focus switched to process %s", procfile.c_str());
}
if(GetForegroundWindow() == hWnd)
{
CLog::Log(LOGDEBUG, __FUNCTION__": Got Focus, deactivating system screensaver");
g_Windowing.EnableSystemScreenSaver(false);
}
else
{
CLog::Log(LOGDEBUG, __FUNCTION__": Lost Focus, activating system screensaver");
g_Windowing.EnableSystemScreenSaver(true);
}
break;
case WM_SYSKEYDOWN:
switch (wParam)
Expand Down

0 comments on commit 65afb59

Please sign in to comment.