[gtk+/layered-windows: 10/10] gdk: Fix repaint of layered region during move_region
- From: Alexander Larsson <alexl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/layered-windows: 10/10] gdk: Fix repaint of layered region during move_region
- Date: Thu, 1 Dec 2011 16:49:36 +0000 (UTC)
commit a472f5cc5b276e5f416af54fe1ff605dc40920d0
Author: Alexander Larsson <alexl redhat com>
Date: Thu Dec 1 16:45:36 2011 +0100
gdk: Fix repaint of layered region during move_region
gdk/gdkwindow.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/gdk/gdkwindow.c b/gdk/gdkwindow.c
index 048d2bb..d736d51 100644
--- a/gdk/gdkwindow.c
+++ b/gdk/gdkwindow.c
@@ -6453,10 +6453,12 @@ gdk_window_move_region (GdkWindow *window,
/* compute source regions */
copy_area = cairo_region_copy (region);
cairo_region_intersect (copy_area, window->clip_region_with_children);
+ cairo_region_subtract (copy_area, window->layered_region);
/* compute destination regions */
cairo_region_translate (copy_area, dx, dy);
cairo_region_intersect (copy_area, window->clip_region_with_children);
+ cairo_region_subtract (copy_area, window->layered_region);
/* Invalidate parts of the region (source and dest) not covered
by the copy */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]