XGetImage problem...

Glynn Clements glynn at gclements.plus.com
Thu Mar 23 13:04:11 PST 2006


Marcus Schäfer wrote:

> --code snippet--
> 
> 	rootpixmap = *(Pixmap*)data;
> 	image = XGetImage (
> 		dpy, rootpixmap, x1, y1, widht, height, AllPlanes, ZPixmap
> 	);
> 
> The position values for x1 and y1 are correct and the width and
> heigth are as well correct corresponding to the current window
> position and size
> 
> The result is a bad match which I don't understand ?

Have you tried calling XGetGeometry on rootpixmap to check that your
rectangle is within bounds?

-- 
Glynn Clements <glynn at gclements.plus.com>



More information about the xorg mailing list