--- rxvt-unicode/src/rxvttoolkit.h 2008/01/11 23:21:53 1.41 +++ rxvt-unicode/src/rxvttoolkit.h 2008/01/23 09:14:58 1.43 @@ -331,6 +331,15 @@ bool operator == (const rxvt_color &b) const { return Pixel (*this) == Pixel (b); } bool operator != (const rxvt_color &b) const { return Pixel (*this) != Pixel (b); } + bool is_opaque () const + { +#if XFT + return c.color.alpha == rgba::MAX_CC; +#else + return 1; +#endif + } + bool alloc (rxvt_screen *screen, const rgba &color); void free (rxvt_screen *screen);