[mutter] surface-actor: Call process_damage even when the actor is invisible



commit 9cb1c95e49c7d8f86999558c2d28dd416892c639
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Thu Aug 21 18:30:56 2014 -0400

    surface-actor: Call process_damage even when the actor is invisible
    
    Otherwise, surface-actor-x11 won't be marked as having received damage,
    which is vital to updating the actual surface.

 src/compositor/meta-surface-actor.c |    7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)
---
diff --git a/src/compositor/meta-surface-actor.c b/src/compositor/meta-surface-actor.c
index 7a13b77..e7e3a02 100644
--- a/src/compositor/meta-surface-actor.c
+++ b/src/compositor/meta-surface-actor.c
@@ -261,11 +261,10 @@ meta_surface_actor_process_damage (MetaSurfaceActor *self,
       return;
     }
 
-  if (!meta_surface_actor_is_visible (self))
-    return;
-
   META_SURFACE_ACTOR_GET_CLASS (self)->process_damage (self, x, y, width, height);
-  meta_surface_actor_update_area (self, x, y, width, height);
+
+  if (meta_surface_actor_is_visible (self))
+    meta_surface_actor_update_area (self, x, y, width, height);
 }
 
 void


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