comparison src/video/x11/SDL_x11video.h @ 1951:7177581dc9fa

Initial work on X11 window code in.
author Sam Lantinga <slouken@libsdl.org>
date Thu, 27 Jul 2006 06:53:23 +0000
parents a344e42bce3b
children 420716272158
comparison
equal deleted inserted replaced
1950:a344e42bce3b 1951:7177581dc9fa
28 28
29 #include <X11/Xlib.h> 29 #include <X11/Xlib.h>
30 #include <X11/Xutil.h> 30 #include <X11/Xutil.h>
31 #include <X11/Xatom.h> 31 #include <X11/Xatom.h>
32 32
33 //#include "SDL_x11events.h"
34 //#include "SDL_x11gamma.h"
35 #include "SDL_x11keyboard.h"
36 #include "SDL_x11modes.h"
37 #include "SDL_x11mouse.h"
38 //#include "SDL_x11opengl.h"
39 //#include "SDL_x11window.h"
40
41 #if SDL_VIDEO_DRIVER_X11_XINERAMA 33 #if SDL_VIDEO_DRIVER_X11_XINERAMA
42 #include "../Xext/extensions/Xinerama.h" 34 #include "../Xext/extensions/Xinerama.h"
43 #endif 35 #endif
44 #if SDL_VIDEO_DRIVER_X11_XRANDR 36 #if SDL_VIDEO_DRIVER_X11_XRANDR
45 #include <X11/extensions/Xrandr.h> 37 #include <X11/extensions/Xrandr.h>
54 #include <X11/extensions/dpms.h> 46 #include <X11/extensions/dpms.h>
55 #endif 47 #endif
56 48
57 #include "SDL_x11dyn.h" 49 #include "SDL_x11dyn.h"
58 50
51 #include "SDL_x11events.h"
52 //#include "SDL_x11gamma.h"
53 #include "SDL_x11keyboard.h"
54 #include "SDL_x11modes.h"
55 #include "SDL_x11mouse.h"
56 //#include "SDL_x11opengl.h"
57 #include "SDL_x11window.h"
58
59 /* Private display data */ 59 /* Private display data */
60 60
61 typedef struct SDL_VideoData 61 typedef struct SDL_VideoData
62 { 62 {
63 Display *display; 63 Display *display;
64 char *classname;
65 XIM im;
66 int screensaver_timeout;
67 BOOL dpms_enabled;
68 int numwindows;
69 SDL_WindowData **windowlist;
64 int mouse; 70 int mouse;
65 int keyboard; 71 int keyboard;
72 Atom WM_DELETE_WINDOW;
66 } SDL_VideoData; 73 } SDL_VideoData;
67 74
68 #endif /* _SDL_x11video_h */ 75 #endif /* _SDL_x11video_h */
69 76
70 /* vi: set ts=4 sw=4 expandtab: */ 77 /* vi: set ts=4 sw=4 expandtab: */