Path: utzoo!attcan!uunet!husc6!purdue!decwrl!jumbo!jg From: jg@jumbo.dec.com (Jim Gettys) Newsgroups: comp.windows.x Subject: Re: Automatic mouse cursor movement Message-ID: <13096@jumbo.dec.com> Date: 9 Jun 88 20:21:03 GMT References: <10799@apple.Apple.Com> <10700006@hpfclp.SDE.HP.COM> <5034@june.cs.washington.edu> <11088@steinmetz.ge.com> <4964@orstcs.CS.ORST.EDU> <13091@jumbo.dec.com> <349@piring.cwi.nl> Reply-To: jg@jumbo.UUCP (Jim Gettys) Organization: DEC Systems Research Center, Palo Alto Lines: 24 >In article <13091@jumbo.dec.com> jg@jumbo.UUCP (Jim Gettys) writes: >>I certainly heartily agree that "warping" the pointer is a VERY bad idea. >>[...] >>And therefore in line with X's mechanism orientation, X provides the >>capability. So as usual, X provides the length of rope to hang yourself. > >Not quite. A modification that would seem to be very useful is to >*offset* the pointer by a certain distance rather than moving it to an >absolute position (in a window). This was mentioned in the example of >the pie menu near the window border. I believe that X11's solution of >specifying an origin region is not enough to emulate such a relative >warp. From the protocol document: If dst-window is None, this request moves the pointer by offsets [dst-x, dst-y] relative to the current position of the pointer. The src-region only has an effect if it is not None, and its purpose is to avoid warping if the user has moved the mouse outside an area in the meanwhile, to avoid certain races. I believe WarpPointer does what you want already. - Jim Gettys