summaryrefslogtreecommitdiff
path: root/clutter/clutter/cogl
diff options
context:
space:
mode:
authorGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>2019-06-17 19:16:47 -0300
committerGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>2019-06-19 12:35:29 -0300
commit0cd54c57354d6c0f88cdc5be40337618c709490d (patch)
tree905009f6713a3fe5278afb03d2b7184b89353dfe /clutter/clutter/cogl
parentcc2c670a5e8a7711477ee363c75af4cc81a207ae (diff)
downloadmutter-0cd54c57354d6c0f88cdc5be40337618c709490d.tar.gz
clutter/stage: Emit after-paint after painting
ClutterStage:after-paint is supposed to be emitted after all painting is done, but before the frame is finished. However, as it is right now, it is being emitted after each view is painted -- on multi-monitor setups, after-frame is being emitted multiple times. Send after-paint only once, after all views are painted and before finishing the frame. https://gitlab.gnome.org/GNOME/mutter/merge_requests/623
Diffstat (limited to 'clutter/clutter/cogl')
-rw-r--r--clutter/clutter/cogl/clutter-stage-cogl.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/clutter/clutter/cogl/clutter-stage-cogl.c b/clutter/clutter/cogl/clutter-stage-cogl.c
index 8898a3b64..8f97a5fa6 100644
--- a/clutter/clutter/cogl/clutter-stage-cogl.c
+++ b/clutter/clutter/cogl/clutter-stage-cogl.c
@@ -983,6 +983,8 @@ clutter_stage_cogl_redraw (ClutterStageWindow *stage_window)
clutter_stage_cogl_redraw_view (stage_window, view) || swap_event;
}
+ _clutter_stage_emit_after_paint (stage_cogl->wrapper);
+
_clutter_stage_window_finish_frame (stage_window);
if (swap_event)