Queue redraws on MutterWindow's MutterShapedTexture

When a windows contents or shape changes, we schedule a redraw
with clutter_actor_queue_redraw(); we need to queue the redraw
on the shaped texture rather than on the window actor to support
cloning of just the shaped texture without the shadow: that
is, the shaped is what is really changing and it may be
visible via a clone even if the MutterWindow itself is not
visible.

http://bugzilla.gnome.org/show_bug.cgi?id=589429
This commit is contained in:
Owen W. Taylor 2009-07-22 16:11:56 -04:00
parent ec2c197e1f
commit e84bf7144c

View File

@ -768,7 +768,7 @@ mutter_window_mark_for_repair (MutterWindow *self)
*
* The compositor paint function repairs all windows.
*/
clutter_actor_queue_redraw (CLUTTER_ACTOR (self));
clutter_actor_queue_redraw (priv->actor);
}
static gboolean
@ -833,7 +833,7 @@ mutter_window_after_effects (MutterWindow *self)
mutter_window_detach (self);
if (priv->needs_repair)
clutter_actor_queue_redraw (CLUTTER_ACTOR (self));
clutter_actor_queue_redraw (priv->actor);
}
void
@ -1654,7 +1654,7 @@ mutter_window_update_shape (MutterWindow *self,
priv->shaped = shaped;
priv->needs_reshape = TRUE;
clutter_actor_queue_redraw (CLUTTER_ACTOR (self));
clutter_actor_queue_redraw (priv->actor);
}
void