summaryrefslogtreecommitdiff
path: root/gdk
diff options
context:
space:
mode:
authorOwen Taylor <otaylor@redhat.com>2002-02-09 05:24:25 +0000
committerOwen Taylor <otaylor@src.gnome.org>2002-02-09 05:24:25 +0000
commit60542887d5f85d976e71ded505a99d29fe2570a4 (patch)
treec92bdf1820947ddcc54f5c3bf83eb5a519045287 /gdk
parente16d01d6a69f3482970f62dc3902a84cae0fb1ce (diff)
downloadgtk+-60542887d5f85d976e71ded505a99d29fe2570a4.tar.gz
XCopyArea with subwindow_mode = IncludeInferiors. (#70999)
Sat Feb 9 00:16:31 2002 Owen Taylor <otaylor@redhat.com> * gdk/x11/gdkimage-x11.c (_gdk_x11_copy_to_image): XCopyArea with subwindow_mode = IncludeInferiors. (#70999) * demos/testpixbuf-save.c (configure_cb): Fix a minor memory management problem.
Diffstat (limited to 'gdk')
-rw-r--r--gdk/x11/gdkimage-x11.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/gdk/x11/gdkimage-x11.c b/gdk/x11/gdkimage-x11.c
index c1de3d2a3d..8b3bf6036e 100644
--- a/gdk/x11/gdkimage-x11.c
+++ b/gdk/x11/gdkimage-x11.c
@@ -506,9 +506,13 @@ _gdk_x11_copy_to_image (GdkDrawable *drawable,
shm_pixmap = _gdk_x11_image_get_shm_pixmap (image);
if (shm_pixmap)
{
+ GC xgc;
+ XGCValues values;
+
/* Again easy, we can just XCopyArea, and don't have to worry about clipping
*/
- GC xgc = XCreateGC (impl->xdisplay, impl->xid, 0, NULL);
+ values.subwindow_mode = IncludeInferiors;
+ xgc = XCreateGC (impl->xdisplay, impl->xid, GCSubwindowMode, &values);
XCopyArea (impl->xdisplay, impl->xid, shm_pixmap, xgc,
src_x, src_y, width, height, dest_x, dest_y);