diff options
Diffstat (limited to 'src/backends/meta-stage.c')
-rw-r--r-- | src/backends/meta-stage.c | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/src/backends/meta-stage.c b/src/backends/meta-stage.c index e3f4ae077..2599daef0 100644 --- a/src/backends/meta-stage.c +++ b/src/backends/meta-stage.c @@ -189,6 +189,7 @@ static void notify_watchers_for_mode (MetaStage *stage, ClutterStageView *view, ClutterPaintContext *paint_context, + ClutterFrame *frame, MetaStageWatchPhase watch_phase) { GPtrArray *watchers; @@ -203,7 +204,7 @@ notify_watchers_for_mode (MetaStage *stage, if (watch->view && view != watch->view) continue; - watch->callback (stage, view, paint_context, watch->user_data); + watch->callback (stage, view, paint_context, frame, watch->user_data); } } @@ -214,7 +215,7 @@ meta_stage_before_paint (ClutterStage *stage, { MetaStage *meta_stage = META_STAGE (stage); - notify_watchers_for_mode (meta_stage, view, NULL, + notify_watchers_for_mode (meta_stage, view, NULL, frame, META_STAGE_WATCH_BEFORE_PAINT); } @@ -224,13 +225,15 @@ meta_stage_paint (ClutterActor *actor, { MetaStage *stage = META_STAGE (actor); ClutterStageView *view; + ClutterFrame *frame; CLUTTER_ACTOR_CLASS (meta_stage_parent_class)->paint (actor, paint_context); + frame = clutter_paint_context_get_frame (paint_context); view = clutter_paint_context_get_stage_view (paint_context); if (view) { - notify_watchers_for_mode (stage, view, paint_context, + notify_watchers_for_mode (stage, view, paint_context, frame, META_STAGE_WATCH_AFTER_ACTOR_PAINT); } @@ -260,7 +263,7 @@ meta_stage_paint (ClutterActor *actor, if (view) { - notify_watchers_for_mode (stage, view, paint_context, + notify_watchers_for_mode (stage, view, paint_context, frame, META_STAGE_WATCH_AFTER_OVERLAY_PAINT); } } @@ -277,7 +280,7 @@ meta_stage_paint_view (ClutterStage *stage, redraw_clip, frame); - notify_watchers_for_mode (meta_stage, view, NULL, + notify_watchers_for_mode (meta_stage, view, NULL, frame, META_STAGE_WATCH_AFTER_PAINT); } |