… | |
… | |
239 | transpPmapBlured = blurNeeded, |
239 | transpPmapBlured = blurNeeded, |
240 | transpTransformations = (tintNeeded|blurNeeded) |
240 | transpTransformations = (tintNeeded|blurNeeded) |
241 | }; |
241 | }; |
242 | unsigned long make_transparency_pixmap ();/* returns combination of the above flags */ |
242 | unsigned long make_transparency_pixmap ();/* returns combination of the above flags */ |
243 | # endif |
243 | # endif |
|
|
244 | double invalid_since; |
244 | |
245 | |
245 | Pixmap pixmap; |
246 | Pixmap pixmap; |
246 | unsigned int pmap_width, pmap_height; |
247 | unsigned int pmap_width, pmap_height; |
247 | unsigned int pmap_depth; |
248 | unsigned int pmap_depth; |
248 | |
249 | |
249 | bool window_size_sensitive (); |
250 | bool window_size_sensitive (); |
|
|
251 | bool need_client_side_rendering (); |
250 | void apply (); |
252 | void apply (); |
251 | bool render (); |
253 | bool render (); |
252 | void invalidate () { flags |= isInvalid; }; |
254 | void invalidate () { |
|
|
255 | if (!(flags & isInvalid)) |
|
|
256 | { |
|
|
257 | flags |= isInvalid; |
|
|
258 | invalid_since = NOW; |
|
|
259 | } |
|
|
260 | }; |
253 | }; |
261 | }; |
254 | #else |
262 | #else |
255 | # undef HAVE_BG_PIXMAP |
263 | # undef HAVE_BG_PIXMAP |
256 | #endif |
264 | #endif |
257 | |
265 | |
… | |
… | |
1156 | |
1164 | |
1157 | #if ENABLE_TRANSPARENCY || ENABLE_PERL |
1165 | #if ENABLE_TRANSPARENCY || ENABLE_PERL |
1158 | void rootwin_cb (XEvent &xev); |
1166 | void rootwin_cb (XEvent &xev); |
1159 | xevent_watcher rootwin_ev; |
1167 | xevent_watcher rootwin_ev; |
1160 | #endif |
1168 | #endif |
1161 | #if ENABLE_TRANSPARENCY |
1169 | #ifdef HAVE_BG_PIXMAP |
1162 | int check_our_parents (); |
1170 | int update_background (); |
1163 | void check_our_parents_cb (time_watcher &w); |
1171 | void update_background_cb (time_watcher &w); |
1164 | time_watcher check_our_parents_ev; |
1172 | time_watcher update_background_ev; |
1165 | #endif |
1173 | #endif |
1166 | |
1174 | |
1167 | void x_cb (XEvent &xev); |
1175 | void x_cb (XEvent &xev); |
1168 | void flush (); |
1176 | void flush (); |
1169 | xevent_watcher termwin_ev; |
1177 | xevent_watcher termwin_ev; |