Fix for failure of gdk_pixbuf_xlib_get_from_drawable if source
drawable is root window.
This commit is contained in:
@ -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;
|
||||
|
||||
Reference in New Issue
Block a user