/* Copyight 2008 Kris Maglione * See LICENSE file for license details. */ #include #include #include #include #include #include #include int main(int argc, char *argv[]) { Point pt; ARGBEGIN{ }ARGEND; initdisplay(); if(argc) { if(!getint(EARGF(exit(1)), &pt.x)) exit(1); if(!getint(EARGF(exit(1)), &pt.y)) exit(1); }else { pt = querypointer(&scr.root); lprint(1, "%d %d\n", pt.x, pt.y); } warppointer(pt); XCloseDisplay(display); }