Fix for failure of gdk_pixbuf_xlib_get_from_drawable if source

drawable is root window.
This commit is contained in:
Bill Haneman
2002-07-01 16:21:51 +00:00
parent 0c9e03ce2e
commit b0f026aeca
16 changed files with 95 additions and 59 deletions

View File

@ -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;