[gtk+/client-side-windows: 80/284] Include inferiors when moving window parts



commit 764ceead6690e4e7658aa0f2b0f5c26d2809fb50
Author: Alexander Larsson <alexl redhat com>
Date:   Wed Jan 14 22:24:41 2009 +0100

    Include inferiors when moving window parts
---
 gdk/gdkwindow.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/gdk/gdkwindow.c b/gdk/gdkwindow.c
index 524b3d7..3b4bfc0 100644
--- a/gdk/gdkwindow.c
+++ b/gdk/gdkwindow.c
@@ -2352,7 +2352,10 @@ do_move_region_bits_on_impl (GdkWindowObject *private,
   
   gdk_region_get_clipbox (region, &copy_rect);
   gdk_region_offset (region, -dest_off_x, -dest_off_y);
-  tmp_gc = _gdk_drawable_get_scratch_gc ((GdkWindow *)private, TRUE);
+  /* We need to get data from subwindows here, because we might have
+     moved or shaped a native window over the moving region (with bg none,
+     so the pixels are still there). */
+  tmp_gc = _gdk_drawable_get_subwindow_scratch_gc ((GdkWindow *)private);
   gdk_gc_set_clip_region (tmp_gc, region);
   gdk_draw_drawable (dest,
 		     tmp_gc,



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