mirror of
https://github.com/brl/mutter.git
synced 2025-01-23 18:09:10 +00:00
9c5663d671
The new-frame signal of a timeline was previously guaranteed to be emitted with the elapsed_time set to the end before it emits the completed signal. This doesn't necessarily make sense for looping timelines because it would cause the elapsed time to be clamped to a slightly off value whenever the timeline restarts. This patch makes it perform the wrap around before emitting the new-frame signal so that the elapsed time always corresponds to the time elapsed since the timeline was started. Additionally it no longer fudges the msecs_delta property to make the marker check work so clutter_timeline_get_delta will always return the wall clock time since the last frame.