--- rxvt-unicode/src/background.h 2010/09/02 15:48:11 1.20 +++ rxvt-unicode/src/background.h 2010/10/13 23:04:57 1.28 @@ -25,7 +25,8 @@ enum { geometrySet = 1 << 0, propScale = 1 << 1, - geometryFlags = geometrySet | propScale, + rootAlign = 1 << 2, + geometryFlags = geometrySet | propScale | rootAlign, tintSet = 1 << 8, tintNeeded = 1 << 9, @@ -34,13 +35,14 @@ tintFlags = tintSet | tintServerSide | tintNeeded | tintWholesome, blurNeeded = 1 << 12, - blurServerSide = 1 << 13, /* this doesn't work yet */ + blurServerSide = 1 << 13, isTransparent = 1 << 16, isInvalid = 1 << 17, isVtOrigin = 1 << 18, /* if set pixmap has origin at corner of vt window instead of parent[0]! */ hasChanged = 1 << 19, + sizeSensitive = 1 << 20, }; unsigned int flags; @@ -48,7 +50,7 @@ enum { transpPmapTiled = 1 << 0, transpPmapTinted = tintNeeded, - transpPmapBlured = blurNeeded, + transpPmapBlurred = blurNeeded, transpTransformations = tintNeeded | blurNeeded, }; /* these flags are returned by make_transparency_pixmap if called */ @@ -68,6 +70,7 @@ GdkPixbuf *pixbuf; # endif + void get_image_geometry (int image_width, int image_height, int &w, int &h, int &x, int &y); bool render_image (unsigned long background_flags); bool have_image; @@ -77,7 +80,6 @@ defaultScale = windowScale, centerAlign = 50, defaultAlign = centerAlign, - rootAlign = -10000 }; unsigned int h_scale, v_scale;/* percents of the window size */ @@ -113,6 +115,8 @@ bool set_tint (rxvt_color &new_tint); bool unset_tint (); bool set_shade (const char *shade_str); + bool blur_pixmap (Pixmap pixmap, Visual *visual, int width, int height); + bool tint_pixmap (Pixmap pixmap, Visual *visual, int width, int height); bool set_root_pixmap (); unsigned long make_transparency_pixmap ();/* returns combination of the transpTransformations flags */