On linux don't check to see if the xdg-screensaver program is present at build time. Just build in the code to call the program. If the program does not exist it will silently fail, and the screensaver will not be inhibited.

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@7606 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
Glenn Rice 2011-06-17 13:14:55 +00:00
parent 73744a991a
commit b705b92075
6 changed files with 2 additions and 23 deletions

View file

@ -936,7 +936,7 @@ void CFrame::StartGame(const std::string& filename)
}
else
{
#if defined(HAVE_XDG_SCREENSAVER) && HAVE_XDG_SCREENSAVER
#if defined(HAVE_X11) && HAVE_X11
X11Utils::InhibitScreensaver(X11Utils::XDisplayFromHandle(GetHandle()),
X11Utils::XWindowFromHandle(GetHandle()), true);
#endif
@ -971,7 +971,6 @@ void CFrame::StartGame(const std::string& filename)
m_RenderParent->Connect(wxID_ANY, wxEVT_SIZE,
wxSizeEventHandler(CFrame::OnRenderParentResize),
(wxObject*)0, this);
}
wxEndBusyCursor();
@ -1055,7 +1054,7 @@ void CFrame::DoStop()
BootManager::Stop();
wxEndBusyCursor();
#if defined(HAVE_XDG_SCREENSAVER) && HAVE_XDG_SCREENSAVER
#if defined(HAVE_X11) && HAVE_X11
X11Utils::InhibitScreensaver(X11Utils::XDisplayFromHandle(GetHandle()),
X11Utils::XWindowFromHandle(GetHandle()), false);
#endif