From 9e8da646368394f3004e72c4bc4409ad1c473c92 Mon Sep 17 00:00:00 2001 From: Philip Withnall Date: Thu, 17 Sep 2015 16:31:11 +0100 Subject: [PATCH] gdk: Use frame time when calculating the tick time for clock updates This is how GdkFrameClock is meant to be used: the frame time is meant to be queried from the GdkFrameClock within its frame signals, rather from the system monotonic time source. https://bugzilla.gnome.org/show_bug.cgi?id=755357 --- clutter/gdk/clutter-master-clock-gdk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clutter/gdk/clutter-master-clock-gdk.c b/clutter/gdk/clutter-master-clock-gdk.c index 748ba5550..c069f7139 100644 --- a/clutter/gdk/clutter-master-clock-gdk.c +++ b/clutter/gdk/clutter-master-clock-gdk.c @@ -243,7 +243,7 @@ clutter_master_clock_gdk_update (GdkFrameClock *frame_clock, _clutter_threads_acquire_lock (); /* Get the time to use for this frame */ - master_clock->cur_tick = g_get_monotonic_time (); + master_clock->cur_tick = gdk_frame_clock_get_frame_time (frame_clock); #ifdef CLUTTER_ENABLE_DEBUG /* Update the remaining budget */