… | |
… | |
218 | |
218 | |
219 | struct rxvt_display : refcounted |
219 | struct rxvt_display : refcounted |
220 | { |
220 | { |
221 | event_vec<xevent_watcher> xw; |
221 | event_vec<xevent_watcher> xw; |
222 | |
222 | |
223 | ev::prepare flush_ev; void flush_cb (ev::prepare &w, int revents); |
223 | ev::idle flush_ev; void flush_cb (ev::idle &w, int revents); |
224 | ev::io x_ev ; void x_cb (ev::io &w, int revents); |
224 | ev::io x_ev ; void x_cb (ev::io &w, int revents); |
225 | |
225 | |
226 | #ifdef USE_XIM |
226 | #ifdef USE_XIM |
227 | refcache<rxvt_xim> xims; |
227 | refcache<rxvt_xim> xims; |
228 | vector<im_watcher *> imw; |
228 | vector<im_watcher *> imw; |
… | |
… | |
332 | bool operator != (const rxvt_color &b) const { return Pixel (*this) != Pixel (b); } |
332 | bool operator != (const rxvt_color &b) const { return Pixel (*this) != Pixel (b); } |
333 | |
333 | |
334 | bool is_opaque () const |
334 | bool is_opaque () const |
335 | { |
335 | { |
336 | #if XFT |
336 | #if XFT |
337 | //TODO: only supports 24 bit truecolour |
337 | return c.color.alpha == rgba::MAX_CC; |
338 | return c.color.alpha < 0xff00; |
|
|
339 | #else |
338 | #else |
340 | return 1; |
339 | return 1; |
341 | #endif |
340 | #endif |
342 | } |
341 | } |
343 | |
342 | |