From 654c26a1301c9bc5f8e3e5e3b68af5eb1b2e0673 Mon Sep 17 00:00:00 2001 From: Neil Roberts Date: Fri, 22 May 2009 14:49:37 +0100 Subject: [PATCH] [actor] In paint when opacity == 0, clear the queued_redraw flag If we are short-circuiting the paint when the opacity is zero we still need to clear the queued_redraw flag otherwise it won't be possible to queue another redraw of the actor until something else has caused a paint first. --- clutter/clutter-actor.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/clutter/clutter-actor.c b/clutter/clutter-actor.c index e59270259..675464355 100644 --- a/clutter/clutter-actor.c +++ b/clutter/clutter-actor.c @@ -1567,7 +1567,10 @@ clutter_actor_paint (ClutterActor *self) * actors with 0 opacity to be a NOP... */ if (G_LIKELY (context->pick_mode == CLUTTER_PICK_NONE) && priv->opacity == 0) - return; + { + priv->queued_redraw = FALSE; + return; + } if (!CLUTTER_ACTOR_IS_REALIZED (self)) {