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: Keith Seitz <keiths at cygnus dot com>
- Subject: Re: [RFA] libgui/src/tkWarpPointer.c for cygwin
- From: Syd Polk <spolk at redhat dot com>
- Date: Thu, 03 May 2001 10:49:20 -0700
- Cc: Insight Maling List <insight at sources dot redhat dot com>
- References: <4.2.0.58.20010502170321.01a43cd0@pop.cygnus.com>
At 07:02 AM 5/3/01 -0700, Keith Seitz wrote:
>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
Can you change it and repost the patch?
Syd Polk spolk@redhat.com
Engineering Manager +1 408 543 9430
Red Hat, Inc.