Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!elroy.jpl.nasa.gov!jarthur!uunet!ora!bloom-beacon!dont-send-mail-to-path-lines From: dshr@eng.sun.COM (David Rosenthal) Newsgroups: comp.windows.x Subject: Re: Warping the pointer and social behaviour Message-ID: <9103172130.AA14439@devnull.Eng.Sun.COM> Date: 17 Mar 91 21:25:37 GMT Sender: daemon@athena.mit.edu (Mr Background) Organization: The Internet Lines: 18 > I have some image display code that runs from an xterm, but creates an > image display in a window of its own. If the user asks for a cursor display > (by typing "cursor" to the xterm, in which resides the pointer) the pointer > is warped to the image window and cursor mode is activated; when the cursor > is no longer desired the pointer is warped back to where it started. No > server grabs are needed. > It sounds to me like you are assuming "focus-follows-cursor" mode. Because your window has the input focus is no reason to believe that the pointer is in the window. Besides, a user interface that depends on the user typing into an xterm isn't taking full advantage of the capabilities of X. I think if you designed a real X user interface you would discover no need for pointer warping. For example, why don't I get a cursor display simply by moving the cursor into the image window. Saves typing :-) David.