clutter/frame-clock: Adapt refresh rate from to frame info

We should update to whatever refresh rate that comes our way, in
particular on X11, as this may change over time.

Closes: https://gitlab.gnome.org/GNOME/mutter/-/issues/1430
This commit is contained in:
Jonas Ådahl 2020-10-05 09:25:58 +02:00 committed by Georges Basile Stavracas Neto
parent 505b3481cd
commit 209b1ba383

View File

@ -197,6 +197,8 @@ clutter_frame_clock_notify_presented (ClutterFrameClock *frame_clock,
frame_clock->last_presentation_time_us = g_get_monotonic_time ();
}
frame_clock->refresh_rate = frame_info->refresh_rate;
switch (frame_clock->state)
{
case CLUTTER_FRAME_CLOCK_STATE_INIT: