updated version #, imlib2 fixed, i forgot when the window size changes we totally...
[monky] / src / x11.h
index 0ceaabb..d30a775 100644 (file)
--- a/src/x11.h
+++ b/src/x11.h
 #include <X11/Xft/Xft.h>
 #endif
 
-#ifdef HAVE_XDBE
-#include <X11/extensions/Xdbe.h>
-#endif
-
 #define ATOM(a) XInternAtom(display, #a, False)
 
 #ifdef OWN_WINDOW
@@ -33,7 +29,7 @@ enum _window_hints {
        HINT_ABOVE,
        HINT_STICKY,
        HINT_SKIP_TASKBAR,
-       HINT_SKIP_PAGER
+       HINT_FULLSCREEN
 };
 
 #define SET_HINT(mask, hint)   (mask |= (1 << hint))
@@ -49,7 +45,7 @@ struct conky_window {
        long border_inner_margin, border_outer_margin, border_width;
 
 #ifdef HAVE_XDBE
-       XdbeBackBuffer back_buffer;
+        Pixmap back_buffer;
 #endif
 #ifdef XFT
        XftDraw *xftdraw;
@@ -65,6 +61,8 @@ struct conky_window {
        unsigned int type;
        unsigned long hints;
 #endif
+    int depth;
+       GC gc_back;
 };
 
 #ifdef HAVE_XDBE
@@ -81,6 +79,8 @@ extern int use_argb_visual;
 /* 1 if use_argb_visual=1 and argb visual was found, otherwise 0 */
 extern int have_argb_visual;
 #endif
+/* range of 0-255 for alpha */
+extern int own_window_argb_value;
 
 extern Display *display;
 extern int display_width;
@@ -97,7 +97,7 @@ 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);
+void set_transparent_background(Window win, int alpha);
 void get_x11_desktop_info(Display *display, Atom atom);
 void set_struts(int);