clutter/actor: Return the actor used when picking clock

The actor used might be relevant, so that e.g. if it moves or for some
other reason changes stage views, the user can listen for that.

https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1404
This commit is contained in:
Jonas Ådahl
2020-08-12 18:08:35 +02:00
parent 9bcb03ab48
commit 07e964e9fc
5 changed files with 21 additions and 10 deletions

View File

@ -652,15 +652,15 @@ meta_test_actor_stage_views_frame_clock (void)
stage_views->data,
stage_views->next->data);
frame_clock = clutter_actor_pick_frame_clock (actor_1);
frame_clock = clutter_actor_pick_frame_clock (actor_1, NULL);
g_assert_cmpfloat (clutter_frame_clock_get_refresh_rate (frame_clock),
==,
60.0);
frame_clock = clutter_actor_pick_frame_clock (actor_2);
frame_clock = clutter_actor_pick_frame_clock (actor_2, NULL);
g_assert_cmpfloat (clutter_frame_clock_get_refresh_rate (frame_clock),
==,
30.0);
frame_clock = clutter_actor_pick_frame_clock (actor_3);
frame_clock = clutter_actor_pick_frame_clock (actor_3, NULL);
g_assert_cmpfloat (clutter_frame_clock_get_refresh_rate (frame_clock),
==,
60.0);