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
commit b705b92075
6 changed files with 2 additions and 23 deletions

View file

@ -17,13 +17,11 @@
#include "X11Utils.h"
#if defined(HAVE_XDG_SCREENSAVER) && HAVE_XDG_SCREENSAVER
#include <unistd.h>
#include <spawn.h>
#include <sys/wait.h>
extern char **environ;
#endif
#if defined(HAVE_WX) && HAVE_WX
#include <string>
@ -135,7 +133,6 @@ Display *XDisplayFromHandle(void *Handle)
}
#endif
#if defined(HAVE_XDG_SCREENSAVER) && HAVE_XDG_SCREENSAVER
void InhibitScreensaver(Display *dpy, Window win, bool suspend)
{
char id[11];
@ -156,7 +153,6 @@ void InhibitScreensaver(Display *dpy, Window win, bool suspend)
DEBUG_LOG(VIDEO, "Started xdg-screensaver (PID = %d)", (int)pid);
}
}
#endif
#if defined(HAVE_XRANDR) && HAVE_XRANDR
XRRConfiguration::XRRConfiguration(Display *_dpy, Window _win)