Commit fab39bbe authored by Jonas Dreßler's avatar Jonas Dreßler Committed by Marge Bot
Browse files

st/viewport: Invalidate the cached paint volume of ClutterActor

Since StViewport uses the value of the StAdjustment to create its custom
paint volume, ClutterActors newly introduced proper caching of paint
volumes doesn't get notifed about changes to that paint volume and will
simply reuse the cached old one.

So make use of the newly introduced
clutter_actor_invalidate_paint_volume() method to make sure ClutterActor
will ask for the paint volume again on the next paint.

Part-of: <!1484>
parent eb962887
......@@ -81,6 +81,7 @@ adjustment_value_notify_cb (StAdjustment *adjustment,
StViewport *viewport)
{
clutter_actor_invalidate_transform (CLUTTER_ACTOR (viewport));
clutter_actor_invalidate_paint_volume (CLUTTER_ACTOR (viewport));
clutter_actor_queue_relayout (CLUTTER_ACTOR (viewport));
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment