mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-06-21 17:51:38 +00:00
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:
parent
73744a991a
commit
b705b92075
6 changed files with 2 additions and 23 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue