int main()
{
  Display *d;
  Window inwin;      
  Window inchildwin; 
  int rootx, rooty; 
  int childx, childy;  
  Atom atom_type_prop; 
  int actual_format;   
  unsigned int mask;   
  unsigned long n_items, bytes_after_ret;
  Window *props; 

  
  d = XOpenDisplay(NULL); 

  
  (void)XGetWindowProperty(d, DefaultRootWindow(d),
			   XInternAtom(d, , True),
			   0, 1, False, AnyPropertyType,
			   &atom_type_prop, &actual_format,
			   &n_items, &bytes_after_ret, (unsigned char**)&props);

  XQueryPointer(d, props[0], &inwin,  &inchildwin,
		&rootx, &rooty, &childx, &childy, &mask);
  printf(, childx, childy);

  XFree(props);           
  (void)XCloseDisplay(d); 
  return 0;
}