[gtk+] gdkwindow: ignore shape on client-side windows when recomputing visible regions



commit 8e5982ca9df24ab3fcfccb253a53d5583e899eb6
Author: Carlos Garnacho <carlosg gnome org>
Date:   Mon Apr 28 21:19:40 2014 +0200

    gdkwindow: ignore shape on client-side windows when recomputing visible regions
    
    Rendering doesn't do much about clipping drawing operations to the window shape,
    although invalidation applies the shape to every window, leaving possibly trails
    of "overrendered" content. So ensure the shape portions get invalidated too when
    the window is moved/resized.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=729095

 gdk/gdkwindow.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gdk/gdkwindow.c b/gdk/gdkwindow.c
index 6e7bcfd..9eeb733 100644
--- a/gdk/gdkwindow.c
+++ b/gdk/gdkwindow.c
@@ -935,7 +935,7 @@ recompute_visible_regions_internal (GdkWindow *private,
          /* Convert from parent coords to window coords */
          cairo_region_translate (new_clip, -private->x, -private->y);
 
-         if (private->shape)
+         if (should_apply_clip_as_shape (private) && private->shape)
            cairo_region_intersect (new_clip, private->shape);
        }
       else


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