From 4b09aa2b8a33c49f6f789910235f02d0c7f2019f Mon Sep 17 00:00:00 2001 From: Julian Sparber Date: Fri, 15 Dec 2023 18:25:52 +0000 Subject: [PATCH] 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: --- src/st/st-viewport.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/st/st-viewport.c b/src/st/st-viewport.c index fa16fdaad..c87c0c2b1 100644 --- a/src/st/st-viewport.c +++ b/src/st/st-viewport.c @@ -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