--- rxvt-unicode/src/rxvttoolkit.h 2007/12/26 14:22:30 1.40 +++ rxvt-unicode/src/rxvttoolkit.h 2008/01/26 10:15:20 1.44 @@ -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, @@ -220,7 +220,7 @@ { event_vec xw; - ev::prepare flush_ev; void flush_cb (ev::prepare &w, int revents); + ev::idle flush_ev; void flush_cb (ev::idle &w, int revents); ev::io x_ev ; void x_cb (ev::io &w, int revents); #ifdef USE_XIM @@ -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);