[gnome-shell] st-bin: Make sure not to allocate hidden children



commit 7e343f11f28a736d88619b85c9b9c6ea52a7e142
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Tue Sep 4 17:49:46 2012 -0300

    st-bin: Make sure not to allocate hidden children

 src/st/st-bin.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/st/st-bin.c b/src/st/st-bin.c
index b083346..3bfa93d 100644
--- a/src/st/st-bin.c
+++ b/src/st/st-bin.c
@@ -101,7 +101,7 @@ st_bin_allocate (ClutterActor          *self,
 
   clutter_actor_set_allocation (self, box, flags);
 
-  if (priv->child)
+  if (priv->child && CLUTTER_ACTOR_IS_VISIBLE (priv->child))
     {
       StThemeNode *theme_node = st_widget_get_theme_node (ST_WIDGET (self));
       ClutterActorBox childbox;



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