[mutter] Queue redraws on MutterWindow's MutterShapedTexture



commit e84bf7144c71ec95437ec445c835b1336f485d03
Author: Owen W. Taylor <otaylor fishsoup net>
Date:   Wed Jul 22 16:11:56 2009 -0400

    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 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/compositor/mutter-window.c b/src/compositor/mutter-window.c
index 0bcd222..4635b5e 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



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