This is the mail archive of the insight@sources.redhat.com mailing list for the Insight project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: [RFA] libgui/src/tkWarpPointer.c for cygwin


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.




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]