[mutter] clutter/frame-clock: Adapt refresh rate from to frame info
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter] clutter/frame-clock: Adapt refresh rate from to frame info
- Date: Mon, 5 Oct 2020 11:35:44 +0000 (UTC)
commit 209b1ba383f59e1b398d3331d9fd9fcb7f0284a1
Author: Jonas Ã…dahl <jadahl gmail com>
Date: Mon Oct 5 09:25:58 2020 +0200
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
clutter/clutter/clutter-frame-clock.c | 2 ++
1 file changed, 2 insertions(+)
---
diff --git a/clutter/clutter/clutter-frame-clock.c b/clutter/clutter/clutter-frame-clock.c
index 1fea057bd2..3f3b9d9d83 100644
--- a/clutter/clutter/clutter-frame-clock.c
+++ b/clutter/clutter/clutter-frame-clock.c
@@ -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:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]