1 #ifndef FVWMLIB_X11_H 2 #define FVWMLIB_X11_H 3 4 #include "config.h" 5 6 #include <X11/Xlib.h> 7 #include <X11/Xmd.h> 8 #include <X11/Xutil.h> 9 #include <X11/Xresource.h> 10 #include <X11/Xatom.h> 11 #include <X11/cursorfont.h> 12 #include <X11/Xproto.h> 13 #include <X11/Intrinsic.h> 14 #include <X11/extensions/Xrandr.h> 15 16 #ifdef XPM 17 #define XpmSupport 1 18 #include <X11/xpm.h> 19 #else 20 #define XpmSupport 0 21 #endif 22 23 #if HAVE_PNG 24 #define PngSupport 1 25 #include <png.h> 26 #else 27 #define PngSupport 0 28 #include <setjmp.h> 29 #endif 30 31 #ifdef HAVE_XCURSOR 32 #include <X11/Xcursor/Xcursor.h> 33 #endif 34 35 #ifdef HAVE_XRENDER 36 #define XRenderSupport 1 37 #include <X11/extensions/Xrender.h> 38 typedef Picture XRenderPicture; 39 #else 40 #define XRenderSupport 0 41 #endif 42 43 #ifdef HAVE_XFT 44 /* no compat to avoid problems in the future */ 45 #define _XFT_NO_COMPAT_ 1 46 #include <X11/Xft/Xft.h> 47 #include <fontconfig/fontconfig.h> 48 #endif 49 50 #ifdef SHAPE 51 #include <X11/extensions/shape.h> 52 #endif 53 54 #ifdef HAVE_XSHM 55 #define XShmSupport 1 56 #include <sys/ipc.h> 57 #include <sys/shm.h> 58 #include <X11/extensions/XShm.h> 59 #else 60 #define XShmSupport 0 61 #endif 62 63 #ifdef SESSION 64 #define SessionSupport 1 65 #include <X11/SM/SMlib.h> 66 #include <X11/ICE/ICEutil.h> 67 #else 68 #define SessionSupport 0 69 #endif 70 71 #ifdef HAVE_X11_XKBLIB_H 72 #include <X11/XKBlib.h> 73 #define fvwm_KeycodeToKeysym(d, k, l, g) \ 74 (XkbKeycodeToKeysym((d), (k), (g), (l))) 75 #else 76 #define fvwm_KeycodeToKeysym(d, k, x, i) (XKeycodeToKeysym((d), (k), (i))) 77 #endif 78 79 #endif /* FVWMLIB_X11_H */ 80