Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!snorkelwacker.mit.edu!bloom-beacon!dont-send-mail-to-path-lines From: mouse@lightning.mcrcim.mcgill.EDU (der Mouse) Newsgroups: comp.windows.x Subject: Re: moving pointer in X. Message-ID: <9104012133.AA05612@lightning.McRCIM.McGill.EDU> Date: 1 Apr 91 21:33:45 GMT Sender: daemon@athena.mit.edu (Mr Background) Organization: The Internet Lines: 33 > I would like to be able to move the pointer from window to window. > i.e. after something happens in one window the pointer should move to > the other window. Can this be done in X. (Questions generally end with `?' rather than `.'.) Certainly you can move the pointer: just put your hand out and push the little thingy on your desk.... :-) Yes, it can. The XWarpPointer call does this. However, using it is discouraged - for good reason. Why do you think you want the pointer to teleport over to the other window? What are you trying to accomplish by doing this? Whatever it is, warping the pointer is probably[%] not the best way to do it. [%] Probably, not certainly. Sometimes using XWarpPointer is actually the Right Thing, though those times are rare. > I do not have access to any manuals concerning programming in X. You actually do, you just don't know it :-) The entire R4 distribution, including documentation, is available for FTP. If you don't want the whole thing, I have various pieces of the doc/ directory unpacked and ASCIIified and up for ftp on 132.206.1.1 in X/ as well (look for things like Xlib.doc and Protocol.doc). der Mouse old: mcgill-vision!mouse new: mouse@larry.mcrcim.mcgill.edu