mirror of
https://github.com/brl/mutter.git
synced 2024-12-22 19:12:04 +00:00
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: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1947>
This commit is contained in:
parent
c8fb98a0a7
commit
18c414cca4
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user