#endif
flags = 0;
pixmap = None;
+ valid_since = invalid_since = 0;
}
void
apply ();
+ XSync (target->dpy, False);
+ valid_since = ev::now ();
+
TIMING_TEST_PRINT_RESULT (tp);
return true;
unsigned long make_transparency_pixmap ();/* returns combination of the transpTransformations flags */
# endif
- double invalid_since;
+ double invalid_since, valid_since;
Pixmap pixmap;
unsigned int pmap_width, pmap_height;
bgPixmap.invalidate ();
- ev_tstamp refresh;
+ ev_tstamp to_wait = 0.5 - (ev::now () - bgPixmap.valid_since);
- if (!bgPixmap.need_client_side_rendering ())
- refresh = .05;
- else if (bgPixmap.flags & bgPixmap_t::blurNeeded)
- /* no chance of real time refresh if we are bluring! */
- refresh = .50;
+ if ( to_wait <= 0. )
+ bgPixmap.render ();
else
- refresh = .07;
-
- update_background_ev.start (refresh);
+ update_background_ev.start (to_wait);
}
void