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

st/widget: Invalidate paint volume on style changes

StWidget is overriding ClutterActors get_paint_volume() vfunc to adjust
for overpaint of things like box shadows that get set in CSS, it does
that by setting the paint volume to the theme nodes paint box.

Since StWidget can't really get notified when the paint box changes, we
just invalidate the paint volume when the theme nodes paint_equal()
returns FALSE.

Part-of: <!1484>
parent fab39bbe
Pipeline #274114 passed with stages
in 6 minutes and 46 seconds
......@@ -1722,6 +1722,8 @@ st_widget_recompute_style (StWidget *widget,
if (!paint_equal)
{
clutter_actor_invalidate_paint_volume (CLUTTER_ACTOR (widget));
next_paint_state (widget);
if (!st_theme_node_paint_equal (new_theme_node, current_paint_state (widget)->node))
......
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