[mutter] surface-actor-x11: Use the existing check for "visibility"



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

    surface-actor-x11: Use the existing check for "visibility"
    
    Instead of doing our own thing here.

 src/compositor/meta-surface-actor-x11.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/src/compositor/meta-surface-actor-x11.c b/src/compositor/meta-surface-actor-x11.c
index 73ba69e..c8b3762 100644
--- a/src/compositor/meta-surface-actor-x11.c
+++ b/src/compositor/meta-surface-actor-x11.c
@@ -205,8 +205,7 @@ meta_surface_actor_x11_process_damage (MetaSurfaceActor *actor,
         priv->does_full_damage = TRUE;
     }
 
-  /* Drop damage event for unredirected windows */
-  if (priv->unredirected)
+  if (!is_visible (actor))
     return;
 
   cogl_texture_pixmap_x11_update_area (priv->texture, x, y, width, height);


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