stage-view: Add short cut to clutter_frame_clock_update_now()

Stage view users can schedule updates at ease with
clutter_stage_view_schedule_update(), but couldn't schedule update
"now". Make that easy too by adding
clutter_stage_view_schedule_update_now().

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2854>
This commit is contained in:
Jonas Ådahl 2022-06-09 15:45:27 +02:00 committed by Marge Bot
parent cc2bbb25ba
commit 71b787f169
2 changed files with 12 additions and 0 deletions

View File

@ -1099,6 +1099,15 @@ clutter_stage_view_schedule_update (ClutterStageView *view)
clutter_frame_clock_schedule_update (priv->frame_clock);
}
void
clutter_stage_view_schedule_update_now (ClutterStageView *view)
{
ClutterStageViewPrivate *priv =
clutter_stage_view_get_instance_private (view);
clutter_frame_clock_schedule_update_now (priv->frame_clock);
}
float
clutter_stage_view_get_refresh_rate (ClutterStageView *view)
{

View File

@ -85,4 +85,7 @@ float clutter_stage_view_get_refresh_rate (ClutterStageView *view);
CLUTTER_EXPORT
gboolean clutter_stage_view_has_shadowfb (ClutterStageView *view);
CLUTTER_EXPORT
void clutter_stage_view_schedule_update_now (ClutterStageView *view);
#endif /* __CLUTTER_STAGE_VIEW_H__ */