#ifdef X11 #ifndef X11_H_ #define X11_H_ #include #include #include #ifdef XFT #include #endif #ifdef HAVE_XDBE #include #endif #define ATOM(a) XInternAtom(display, #a, False) #ifdef OWN_WINDOW enum _window_type { TYPE_NORMAL = 0, TYPE_DOCK, TYPE_DESKTOP, TYPE_OVERRIDE }; enum _window_hints { HINT_UNDECORATED = 0, HINT_BELOW, HINT_ABOVE, HINT_STICKY, HINT_SKIP_TASKBAR, HINT_SKIP_PAGER }; #define SET_HINT(mask, hint) (mask |= (1 << hint)) #define TEST_HINT(mask, hint) (mask & (1 << hint)) #endif struct conky_window { Window root, window, desktop; Drawable drawable; GC gc; #ifdef HAVE_XDBE XdbeBackBuffer back_buffer; #endif #ifdef XFT XftDraw *xftdraw; #endif int width; int height; #ifdef OWN_WINDOW char class_name[256]; char title[256]; int x; int y; unsigned int type; unsigned long hints; #endif }; #ifdef HAVE_XDBE extern int use_xdbe; #endif #ifdef XFT extern int use_xft; #endif extern Display *display; extern int display_width; extern int display_height; extern int screen; extern int workarea[4]; extern struct conky_window window; void init_X11(const char*); void init_window(int use_own_window, int width, int height, int set_trans, int back_colour, char **argv, int argc); void destroy_window(void); void create_gc(void); void set_transparent_background(Window win); long get_x11_color(const char *); #endif /*X11_H_*/ #endif /* X11 */