From e84bf7144c71ec95437ec445c835b1336f485d03 Mon Sep 17 00:00:00 2001 From: "Owen W. Taylor" Date: Wed, 22 Jul 2009 16:11:56 -0400 Subject: [PATCH] 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 --- src/compositor/mutter-window.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/compositor/mutter-window.c b/src/compositor/mutter-window.c index 0bcd2225c..4635b5e08 100644 --- a/src/compositor/mutter-window.c +++ b/src/compositor/mutter-window.c @@ -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