int main(int argc, const char *const *argv) {
char *ep;
XWindowAttributes attr;
- Window dummy;
int xpos,ypos;
unsigned width,height,bd,depth;
int r;
r= XGetGeometry(disp,id, &attr.root,&xpos,&ypos,&width,&height, &bd,&depth);
eassert(r);
+ Window dummy;
r= XTranslateCoordinates(disp, id,attr.root, 160,160, &xpos,&ypos,
&dummy);
eassert(r);