From 18c414cca422ee818b42066f2633e59a4f942ab4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20=C3=85dahl?= Date: Fri, 30 Jul 2021 11:28:28 +0200 Subject: [PATCH] clutter/stage-view: Initialize view as damaged and awaiting frame Make sure that when we've recreated views that we'll actually paint a new frame for it. This was very rarely a problem, as views tend to result in getting damage etc being queued as side effects of various things, like layout, but e.g. when running certain tests, this might not happen. There is no situation where we want to create a new view that should remain unpainted, so just make sure we initialize it to become up to date. Part-of: --- clutter/clutter/clutter-stage-view.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/clutter/clutter/clutter-stage-view.c b/clutter/clutter/clutter-stage-view.c index 2b2cadd68..9b7345983 100644 --- a/clutter/clutter/clutter-stage-view.c +++ b/clutter/clutter/clutter-stage-view.c @@ -1369,6 +1369,9 @@ clutter_stage_view_constructed (GObject *object) &frame_clock_listener_iface, view); + clutter_stage_view_add_redraw_clip (view, NULL); + clutter_stage_view_schedule_update (view); + G_OBJECT_CLASS (clutter_stage_view_parent_class)->constructed (object); }