--- rxvt-unicode/src/rxvt.h 2012/12/29 14:23:35 1.511 +++ rxvt-unicode/src/rxvt.h 2012/12/29 18:12:53 1.513 @@ -1183,20 +1183,11 @@ XComposeStatus compose; static struct termios def_tio; row_col_t oldcursor; + #ifdef HAVE_BG_PIXMAP void bg_init (); void bg_destroy (); - enum { - BG_IS_VALID = 1 << 0, - - BG_IS_TRANSPARENT = 1 << 1, - BG_NEEDS_REFRESH = 1 << 2, - BG_INHIBIT_RENDER = 1 << 3, - }; - - uint8_t bg_flags; - # if BG_IMAGE_FROM_FILE rxvt_image fimage; void get_image_geometry (rxvt_image &image, int &w, int &h, int &x, int &y); @@ -1207,10 +1198,6 @@ rxvt_img *root_img; image_effects root_effects; - void bg_set_transparent () - { - bg_flags |= BG_IS_TRANSPARENT; - } void bg_set_root_pixmap (); bool render_root_image (); # endif @@ -1219,18 +1206,30 @@ ev_tstamp bg_valid_since; - rxvt_img *bg_img; - bool bg_window_size_sensitive (); bool bg_window_position_sensitive (); void bg_render (); void bg_invalidate () { - bg_flags &= ~BG_IS_VALID; + bg_flags &= ~(BG_IS_VALID | BG_IS_TRANSPARENT); } #endif +#ifdef HAVE_IMG + enum { + BG_IS_VALID = 1 << 0, + + BG_IS_TRANSPARENT = 1 << 1, + BG_NEEDS_REFRESH = 1 << 2, + BG_INHIBIT_RENDER = 1 << 3, + }; + + uint8_t bg_flags; + + rxvt_img *bg_img; +#endif + #if ENABLE_OVERLAY overlay_base ov;