--- rxvt-unicode/src/rxvt.h 2012/05/31 20:23:51 1.493 +++ rxvt-unicode/src/rxvt.h 2012/06/05 19:32:29 1.500 @@ -72,7 +72,7 @@ #include #include -#ifdef HAVE_PIXBUF +#if HAVE_PIXBUF # include #endif @@ -85,6 +85,7 @@ #include "rxvtutil.h" #include "rxvtfont.h" #include "rxvttoolkit.h" +#include "rxvtimg.h" #include "scrollbar.h" #include "ev_cpp.h" #include "libptytty.h" @@ -241,7 +242,7 @@ bool set_blur (const char *geom); }; -# ifdef BG_IMAGE_FROM_FILE +# if BG_IMAGE_FROM_FILE enum { IM_IS_SET = 1 << 0, IM_IS_SIZE_SENSITIVE = 1 << 1, @@ -274,7 +275,7 @@ || (!(flags & IM_ROOT_ALIGN) && (h_align || v_align))); } -# ifdef HAVE_PIXBUF +# if HAVE_PIXBUF GdkPixbuf *pixbuf; void destroy () @@ -352,7 +353,7 @@ /* COLORTERM, TERM environment variables */ #define COLORTERMENV "rxvt" -#ifdef BG_IMAGE_FROM_FILE +#if BG_IMAGE_FROM_FILE # define COLORTERMENVFULL COLORTERMENV "-xpm" #else # define COLORTERMENVFULL COLORTERMENV @@ -1193,14 +1194,11 @@ BG_IS_TRANSPARENT = 1 << 1, BG_NEEDS_REFRESH = 1 << 2, - - BG_HAS_RENDER = 1 << 3, - BG_HAS_RENDER_CONV = 1 << 4, }; uint8_t bg_flags; -# ifdef BG_IMAGE_FROM_FILE +# if BG_IMAGE_FROM_FILE vector image_vec; rxvt_image *new_image () { @@ -1212,8 +1210,8 @@ void parse_image (int id, const char *type, const char *arg); # endif -# ifdef ENABLE_TRANSPARENCY - Pixmap root_pixmap; /* current root pixmap set */ +# if ENABLE_TRANSPARENCY + Pixmap root_pixmap; /* current root pixmap set */ image_effects root_effects; void bg_set_transparent () @@ -1245,7 +1243,7 @@ bg_flags &= ~BG_IS_VALID; } #endif -#ifdef HAVE_PIXBUF +#if HAVE_PIXBUF bool pixbuf_to_pixmap (GdkPixbuf *pixbuf, Pixmap pixmap, GC gc, int src_x, int src_y, int dst_x, int dst_y, unsigned int width, unsigned int height, bool argb); @@ -1266,6 +1264,8 @@ vector allocated; // free these memory blocks with free() + int parent_x, parent_y; // parent window position relative to root, only updated on demand + char *locale; char charsets[4]; char *v_buffer; /* pointer to physical buffer */ @@ -1469,7 +1469,6 @@ void alias_color (int dst, int src); void set_widthheight (unsigned int newwidth, unsigned int newheight); void get_window_origin (int &x, int &y); - Pixmap get_pixmap_property (Atom property); // screen.C @@ -1588,6 +1587,7 @@ void selection_rotate (int x, int y) NOTHROW; // xdefaults.C + void rxvt_usage (int type); const char **get_options (int argc, const char *const *argv); int parse_keysym (const char *str, const char *arg); const char *x_resource (const char *name);