From: Gary Quinn (Gary++at++tees.ac.uk)
Date: 02/08/2002 06:40:40
Hi All.
Thanks for your help. I'll try this out
and let you know asap.
pfThanx.
Gary.
Ulrich Hertlein wrote:
>
> Gary Quinn wrote:
>
> > Is there a function for setting the cursor's
> > position. We have a problem sometimes, with
> > the cursor being moved out of the active window.
> >
> > I have searched the X windows functions, but
> > nothing jumps out as the obvious function to use.
> >
> > I'd like to be able to place the cursor at the
> > centre of the application window, when the app
>
> > starts up.
>
> XWarpPointer(3X11)
>
Display* dpy = pfGetCurWSConnection();
pfPipeWindow* pwin;
Window win = pwin->getWSWindow();
I'm not sure about src_w and dst_w, maybe just use
DefaultRootWindow(dpy).
-Ulrich> Hope it helps,
> -Ulrich
>
> --
> Ulrich Hertlein | phone:+49-30-394054-30
> bit~side software gmbh | mailto:u.hertlein++at++bit-side.com
> "Writing software is more fun than working."
--Gary Quinn, VR Centre Technical Manager University of Teesside SG Network Admin Borough Road, Middlesbrough Go Player Cleveland, TS1 3BA mailto:Gary++at++tees.ac.uk +44 (0)1642 384303 fax 384310 http://vr.tees.ac.uk
This archive was generated by hypermail 2b29 : Fri Feb 08 2002 - 06:46:33 PST