comparison 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
comparison
equal deleted inserted replaced
3024:1a08749aebce 3025:54fac87e1f34
37 #include <X11/extensions/Xrandr.h> 37 #include <X11/extensions/Xrandr.h>
38 #endif 38 #endif
39 #if SDL_VIDEO_DRIVER_X11_VIDMODE 39 #if SDL_VIDEO_DRIVER_X11_VIDMODE
40 #include "../Xext/extensions/xf86vmode.h" 40 #include "../Xext/extensions/xf86vmode.h"
41 #endif 41 #endif
42 #if SDL_VIDEO_DRIVER_X11_XME
43 #include "../Xext/extensions/xme.h"
44 #endif
45 #if SDL_VIDEO_DRIVER_X11_DPMS
46 #include <X11/extensions/dpms.h>
47 #endif
48 #if SDL_VIDEO_DRIVER_X11_XINPUT 42 #if SDL_VIDEO_DRIVER_X11_XINPUT
49 #include <X11/extensions/XInput.h> 43 #include <X11/extensions/XInput.h>
44 #endif
45 #if SDL_VIDEO_DRIVER_X11_SCRNSAVER
46 #include <X11/extensions/scrnsaver.h>
50 #endif 47 #endif
51 48
52 #include "SDL_x11dyn.h" 49 #include "SDL_x11dyn.h"
53 50
54 #include "SDL_x11events.h" 51 #include "SDL_x11events.h"
64 typedef struct SDL_VideoData 61 typedef struct SDL_VideoData
65 { 62 {
66 Display *display; 63 Display *display;
67 char *classname; 64 char *classname;
68 XIM im; 65 XIM im;
69 int screensaver_timeout; 66 Uint32 screensaver_activity;
70 BOOL dpms_enabled;
71 int numwindows; 67 int numwindows;
72 SDL_WindowData **windowlist; 68 SDL_WindowData **windowlist;
73 int windowlistlength; 69 int windowlistlength;
74 int keyboard; 70 int keyboard;
75 Atom WM_DELETE_WINDOW; 71 Atom WM_DELETE_WINDOW;