Re: [XFree86] Getting mouse cordinates

2005-02-01 Thread Henrik Sandklef
Display *dpy; int rx; int ry; int wx; int wy; Window root; Window child; unsigned int mask; Bool bo; dpy = XOpenDisplay(NULL); bo = XQueryPointer(dpy, RootWindow(dpy,0), root, child, rx,

[XFree86] Getting mouse cordinates

2005-01-17 Thread Vishal Linux
Dear all, I am porting an application from Windows to Linux. In the application at some point of time i require the cordinates of mouse pointer. (Application developer of windows has achieved this by concept of Mouse Hooking). After doing some research and study i think the blow API shud serve