mirror of
https://github.com/brl/mutter.git
synced 2025-06-13 16:59:30 +00:00
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:
@ -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);
|
||||
|
Reference in New Issue
Block a user