From 8e5982ca9df24ab3fcfccb253a53d5583e899eb6 Mon Sep 17 00:00:00 2001 From: Carlos Garnacho Date: Mon, 28 Apr 2014 21:19:40 +0200 Subject: [PATCH] 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 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gdk/gdkwindow.c b/gdk/gdkwindow.c index 6e7bcfdb8e..9eeb7333bd 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