This is the mail archive of the
insight@sources.redhat.com
mailing list for the Insight project.
Re: [RFA] libgui/src/tkWarpPointer.c for cygwin
- To: Syd Polk <spolk at redhat dot com>
- Subject: Re: [RFA] libgui/src/tkWarpPointer.c for cygwin
- From: Keith Seitz <keiths at cygnus dot com>
- Date: Thu, 3 May 2001 07:02:23 -0700 (PDT)
- cc: Insight Maling List <insight at sources dot redhat dot com>
On Wed, 2 May 2001, Syd Polk wrote:
> >+ #ifdef _WIN32
> >+ int wx, wy;
> >+ Tk_GetRootCoords (tkwin, &wx, &wy);
> >+ SetCursorPos@8 (wx + x, wy + y);
> >+ #else
> >+ Window win = Tk_WindowId(tkwin);
> >+ XWarpPointer(Tk_Display(tkwin), None, win, 0, 0, 0, 0, x, y);
> >+ #endif
> >+ }
>
> The second question I have is why do you need "SetCursorPos@8"? Assuming
> you are including winuser.h, you should be able to use "SetCursorPos", and
> either a macro will fix this, or the linker will. I don't think requiring
> the "@8" or "@16" or whatever for Windows API calls is very nice.
I don't need "SetCursorPos@8": I added the header files and forgot to
rename the function in the patch I posted. The actual patch would have
contained a call to SetCursorPos only. Sorry about that.
Keith