diff src/video/x11/SDL_x11video.h @ 3025:54fac87e1f34

Added an API to enable/disable the screen saver. The screensaver is disabled by default when using SDL 1.2 compatibility. Use the new XScreenSaver extension, removed unused DPMS extension.
author Sam Lantinga <slouken@libsdl.org>
date Mon, 12 Jan 2009 06:19:05 +0000
parents ee331407574f
children f7b03b6838cb
line wrap: on
line diff
--- a/src/video/x11/SDL_x11video.h	Sun Jan 11 23:56:19 2009 +0000
+++ b/src/video/x11/SDL_x11video.h	Mon Jan 12 06:19:05 2009 +0000
@@ -39,15 +39,12 @@
 #if SDL_VIDEO_DRIVER_X11_VIDMODE
 #include "../Xext/extensions/xf86vmode.h"
 #endif
-#if SDL_VIDEO_DRIVER_X11_XME
-#include "../Xext/extensions/xme.h"
-#endif
-#if SDL_VIDEO_DRIVER_X11_DPMS
-#include <X11/extensions/dpms.h>
-#endif
 #if SDL_VIDEO_DRIVER_X11_XINPUT
 #include <X11/extensions/XInput.h>
 #endif
+#if SDL_VIDEO_DRIVER_X11_SCRNSAVER
+#include <X11/extensions/scrnsaver.h>
+#endif
 
 #include "SDL_x11dyn.h"
 
@@ -66,8 +63,7 @@
     Display *display;
     char *classname;
     XIM im;
-    int screensaver_timeout;
-    BOOL dpms_enabled;
+    Uint32 screensaver_activity;
     int numwindows;
     SDL_WindowData **windowlist;
     int windowlistlength;