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:
parent
54a0c49d32
commit
4b09aa2b8a
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user