summaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorBill Haneman <billh@src.gnome.org>2002-07-01 16:21:51 +0000
committerBill Haneman <billh@src.gnome.org>2002-07-01 16:21:51 +0000
commitb0f026aecaaf94fac07a849282acddf12e0e6130 (patch)
tree325006f3605cef26760bac0b014fa6819a79bfaf /contrib
parent0c9e03ce2e82d150465f5910df6098e6ff1ae4c2 (diff)
downloadgdk-pixbuf-b0f026aecaaf94fac07a849282acddf12e0e6130.tar.gz
Fix for failure of gdk_pixbuf_xlib_get_from_drawable if source
drawable is root window.
Diffstat (limited to 'contrib')
-rw-r--r--contrib/gdk-pixbuf-xlib/gdk-pixbuf-xlib-drawable.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/gdk-pixbuf-xlib/gdk-pixbuf-xlib-drawable.c b/contrib/gdk-pixbuf-xlib/gdk-pixbuf-xlib-drawable.c
index e84d97638..2c8de405a 100644
--- a/contrib/gdk-pixbuf-xlib/gdk-pixbuf-xlib-drawable.c
+++ b/contrib/gdk-pixbuf-xlib/gdk-pixbuf-xlib-drawable.c
@@ -1145,7 +1145,7 @@ xlib_window_is_viewable (Window w)
if (nchildren > 0)
XFree (children);
- if (parent == root)
+ if ((parent == root) || (w == root))
return TRUE;
w = parent;