[forum] w.r.t API provided by XFree
Vishal Linux
Vishal Linux <vishal.linux@gmail.com>
Sun, 16 Jan 2005 22:12:16 -0800
Dear all,
Regarding getting mouse cordinates (Implementing Mouse Hooking of
windows in Linux using Xfree)
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" in Windows).
After doing some research and study i think the below API shud serve
the purpose.
Bool XQueryPointer(Display *display, Window w, Window
*root_return, Window *child_return, int *root_x_return, int
*root_y_return, int *win_x_return, int *win_y_return, unsigned int
*mask_return);
Reference: http://www.xfree86.org/4.4.0/XQueryPointer.3.html
Cud any one who has been developing/working on XFree, gimme some
pointers and some guidelines....like where i can get more details of
using these APIs in code.
Plz send cc of ur reply at this address.
Regards,
Vishal.