--- rxvt-unicode/src/rxvttoolkit.h 2007/12/26 14:22:30 1.40 +++ rxvt-unicode/src/rxvttoolkit.h 2008/01/23 05:59:30 1.42 @@ -75,7 +75,7 @@ XA_XEMBED_INFO, #endif #if !ENABLE_MINIMAL - // these are usually allocated by other subsystens, but we do it + // these are usually allocated by other subsystems, but we do it // here to avoid a server roundtrip. XA_SCREEN_RESOURCES, XA_XDCCC_LINEAR_RGB_CORRECTION, @@ -331,6 +331,16 @@ 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 + //TODO: only supports 24 bit truecolour + return c.color.alpha < 0xff00; +#else + return 1; +#endif + } + bool alloc (rxvt_screen *screen, const rgba &color); void free (rxvt_screen *screen);