#define BOOKMARK_FILE "bookmarks.xbel"
#endif
-#ifdef GDK_WINDOWING_X11
+#ifdef HAVE_X11_EXTENSIONS_SCRNSAVER_H
#include <X11/Xlib.h>
#include <X11/Xutil.h>
#include <X11/extensions/scrnsaver.h>
static gboolean
midori_inactivity_timeout (gpointer data)
{
- #ifdef GDK_WINDOWING_X11
+ #ifdef HAVE_X11_EXTENSIONS_SCRNSAVER_H
MidoriInactivityTimeout* mit = data;
static Display* xdisplay = NULL;
static XScreenSaverInfo* mit_info = NULL;
N_("Display program version"), NULL },
{ G_OPTION_REMAINING, 0, 0, G_OPTION_ARG_STRING_ARRAY, &uris,
N_("Addresses"), NULL },
- #ifdef GDK_WINDOWING_X11
+ #ifdef HAVE_X11_EXTENSIONS_SCRNSAVER_H
{ "inactivity-reset", 'i', 0, G_OPTION_ARG_INT, &inactivity_reset,
N_("Reset Midori after SECONDS seconds of inactivity"), N_("SECONDS") },
#endif
args = '--define-variable=target=win32'
elif sys.platform != 'darwin':
check_pkg ('x11')
- conf.check (lib='Xss', mandatory=True)
+ conf.check (header_name='X11/extensions/scrnsaver.h', mandatory=False)
+ conf.check (lib='Xss', mandatory=False)
check_pkg ('gtk+-2.0', '2.10.0', var='GTK', args=args)
check_pkg ('webkit-1.0', '1.1.1', args=args)
check_pkg ('libsoup-2.4', '2.25.2')