From 120d7595e3128a233c1fdffd762327b5b74a54d1 Mon Sep 17 00:00:00 2001 From: Robert Bragg Date: Tue, 7 Sep 2010 21:47:01 +0100 Subject: [PATCH] actor: _real_queue_relayout shouldn't queue redraw The base implementation for the actor queue_relayout method was queuing an implicit redraw, but there shouldn't be anything implied from the mere process of queuing a redraw that should force us to queue a redraw. If actors are moved as a part of relayouting later then they will queue a redraw. Also clutter_actor_queue_relayout() still also explicitly queues a redraw so I think this may have been doubly redundant. --- clutter/clutter-actor.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/clutter/clutter-actor.c b/clutter/clutter-actor.c index f14171cc8..741c66f8c 100644 --- a/clutter/clutter-actor.c +++ b/clutter/clutter-actor.c @@ -1863,12 +1863,9 @@ clutter_actor_real_queue_relayout (ClutterActor *self) memset (priv->height_requests, 0, N_CACHED_SIZE_REQUESTS * sizeof (SizeRequest)); - /* always repaint also (no-op if not mapped) */ - clutter_actor_queue_redraw (self); - /* We need to go all the way up the hierarchy */ if (priv->parent_actor) - clutter_actor_queue_relayout (priv->parent_actor); + _clutter_actor_queue_only_relayout (priv->parent_actor); } /**