home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.windows.x
- Path: sparky!uunet!haven.umd.edu!wam.umd.edu!dododge
- From: dododge@wam.umd.edu (David O. Dodge)
- Subject: Pointer problems
- Message-ID: <1992Nov21.075823.382@wam.umd.edu>
- Summary: making pointer invisible
- Sender: usenet@wam.umd.edu (USENET News system)
- Nntp-Posting-Host: rac2.wam.umd.edu
- Organization: University of Maryland, College Park
- Date: Sat, 21 Nov 1992 07:58:23 GMT
- Lines: 37
-
- Here's the situation:
-
- I'm writing a program for a Sparc that requires exclusive access to the
- screen, but needs to run while X is running. I need some way to keep
- X from touching screen memory, because my program is doing direct writes
- into the framebuffer memory. The program needs to be able to get mouse
- input from the X server. I've gotten this to work fine under OpenWindows,
- but it still has a slight problem with MIT X11R5.
-
- I need to get relative pointer movements. The problem is that when
- the pointer hits the edge of the root window, it stops moving, so what I've
- been doing is warping the pointer to the center of the screen, then reading
- a bunch of pointer events and figuring the deltas. Then I warp it back to
- the center of the screen again, etc...
-
- The thing is, when you warp the pointer, even if the pointer is invisible
- (empty bitmap/pixmap), X11R5 is still trying to refresh that spot on the
- screen! Needless to say, this is wreaking havoc with my program, because
- the server keeps altering screen memory.
-
- The reason this works fine under OpenWindows is because that server uses
- a hardware cursor (I think).
-
- There are two solutions I can think of:
-
- 1) Make it so that the server will let the user move the pointer off
- the edges of the screen.
-
- 2) Keep the server from touching the screen when I warp the pointer.
-
- Any ideas? I've got no clue as to how to implement either of these things.
- I'd prefer (1), but (2) would solve the problem. Modifying the server
- is not an acceptable alternative, and I don't want this locked to the
- OpenWindows server either.
-
- Any help/suggestions would be appreciated.
- -Dave Dodge/dododge@wam.umd.edu
-