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:
parent
505b3481cd
commit
209b1ba383
@ -197,6 +197,8 @@ clutter_frame_clock_notify_presented (ClutterFrameClock *frame_clock,
|
|||||||
frame_clock->last_presentation_time_us = g_get_monotonic_time ();
|
frame_clock->last_presentation_time_us = g_get_monotonic_time ();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
frame_clock->refresh_rate = frame_info->refresh_rate;
|
||||||
|
|
||||||
switch (frame_clock->state)
|
switch (frame_clock->state)
|
||||||
{
|
{
|
||||||
case CLUTTER_FRAME_CLOCK_STATE_INIT:
|
case CLUTTER_FRAME_CLOCK_STATE_INIT:
|
||||||
|
Loading…
Reference in New Issue
Block a user