diff --git a/clutter/clutter/clutter-stage-private.h b/clutter/clutter/clutter-stage-private.h index 4799c29e1..cb887ea32 100644 --- a/clutter/clutter/clutter-stage-private.h +++ b/clutter/clutter/clutter-stage-private.h @@ -134,6 +134,8 @@ void _clutter_stage_presented (ClutterStage *stag GList * _clutter_stage_peek_stage_views (ClutterStage *stage); +int clutter_stage_get_sync_delay (ClutterStage *stage); + G_END_DECLS #endif /* __CLUTTER_STAGE_PRIVATE_H__ */ diff --git a/clutter/clutter/clutter-stage.c b/clutter/clutter/clutter-stage.c index 25ce9d899..1cb5cb9b6 100644 --- a/clutter/clutter/clutter-stage.c +++ b/clutter/clutter/clutter-stage.c @@ -4722,6 +4722,14 @@ clutter_stage_set_sync_delay (ClutterStage *stage, stage->priv->sync_delay = sync_delay; } +int +clutter_stage_get_sync_delay (ClutterStage *stage) +{ + g_return_val_if_fail (CLUTTER_IS_STAGE (stage), -1); + + return stage->priv->sync_delay; +} + /** * clutter_stage_skip_sync_delay: * @stage: a #ClutterStage