st/viewport: Queue only redraw when StAdjustment value changes

It's enough to redraw the actor. Also the actor may be already in a relayout cycle
when the StAdjustment value changes which is bad.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3059>
This commit is contained in:
Julian Sparber 2023-12-15 18:25:52 +00:00 committed by Marge Bot
parent 54a0c49d32
commit 4b09aa2b8a

View File

@ -89,7 +89,7 @@ adjustment_value_notify_cb (StAdjustment *adjustment,
{
clutter_actor_invalidate_transform (CLUTTER_ACTOR (viewport));
clutter_actor_invalidate_paint_volume (CLUTTER_ACTOR (viewport));
clutter_actor_queue_relayout (CLUTTER_ACTOR (viewport));
clutter_actor_queue_redraw (CLUTTER_ACTOR (viewport));
}
static void