[metacity] surface-xrender: remove visibility check from paint functions



commit 85c64a468d80901142446333d8dec8e8627c7b0f
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date:   Wed Oct 23 01:15:54 2019 +0300

    surface-xrender: remove visibility check from paint functions

 src/compositor/meta-surface-xrender.c | 6 ------
 1 file changed, 6 deletions(-)
---
diff --git a/src/compositor/meta-surface-xrender.c b/src/compositor/meta-surface-xrender.c
index 5047cc34..247659e4 100644
--- a/src/compositor/meta-surface-xrender.c
+++ b/src/compositor/meta-surface-xrender.c
@@ -845,9 +845,6 @@ meta_surface_xrender_paint_shadow (MetaSurfaceXRender *self,
 
   surface = META_SURFACE (self);
 
-  if (!meta_surface_is_visible (surface))
-    return;
-
   if (self->shadow == NULL)
     return;
 
@@ -872,9 +869,6 @@ meta_surface_xrender_paint (MetaSurfaceXRender *self,
                             Picture             paint_buffer,
                             gboolean            opaque)
 {
-  if (!meta_surface_is_visible (META_SURFACE (self)))
-    return;
-
   if (opaque)
     {
       paint_opaque_parts (self, paint_region, paint_buffer);


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