macos: fix fps calculation for frame timings

We need to mark the timings as complete after adding the
presentation time so that we have a valid FPS for the overlay
widget and/or fishbowl demo.
This commit is contained in:
Christian Hergert 2020-10-15 21:04:51 -07:00
parent 1021e12121
commit 7ae8ed82c9

View File

@ -713,7 +713,10 @@ _gdk_macos_surface_thaw (GdkMacosSurface *self,
timings = gdk_frame_clock_get_timings (frame_clock, self->pending_frame_counter);
if (timings != NULL)
timings->presentation_time = presentation_time - refresh_interval;
{
timings->presentation_time = presentation_time - refresh_interval;
timings->complete = TRUE;
}
self->pending_frame_counter = 0;
}