[gnome-shell/wip/carlosg/reuse-paint-volumes: 23/24] st-box-layout: Queue relayout on adjustment changes



commit ab4c72d758a23824e8e4a2f35d0b5b479777f294
Author: Carlos Garnacho <carlosg gnome org>
Date:   Thu Jun 28 16:41:07 2018 +0200

    st-box-layout: Queue relayout on adjustment changes
    
    The actor allocation doesn't change per-se, but apply_transform()
    will practically transform it. In order to have the paint volume
    update accordingly, queue a relayout.

 src/st/st-box-layout.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/st/st-box-layout.c b/src/st/st-box-layout.c
index 12fe86910..3acb15c40 100644
--- a/src/st/st-box-layout.c
+++ b/src/st/st-box-layout.c
@@ -90,7 +90,7 @@ adjustment_value_notify_cb (StAdjustment *adjustment,
                             GParamSpec   *pspec,
                             StBoxLayout  *box)
 {
-  clutter_actor_queue_redraw (CLUTTER_ACTOR (box));
+  clutter_actor_queue_relayout (CLUTTER_ACTOR (box));
 }
 
 static void


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]