Path: utzoo!attcan!uunet!tut.cis.ohio-state.edu!zaphod.mps.ohio-state.edu!usc!snorkelwacker!bloom-beacon!URBANA.MCD.MOT.COM!ebina From: ebina@URBANA.MCD.MOT.COM (Eric Bina) Newsgroups: comp.windows.x Subject: GetWindowCursor Message-ID: <9006291703.AA15889@dacapo.urbana.mcd.mot.com> Date: 29 Jun 90 17:03:23 GMT Sender: daemon@athena.mit.edu (Mr Background) Organization: The Internet Lines: 23 How do I find the Cursor ID for the current cursor in a window? Basically what a want is to have my cursor disappear if I havn't moved the mouse for a while, and then reappear when I move the mouse. I have written a program that I can run which follows mouse motion, and when the mouse has been at rest for a while will make it disappear by finding the current window you are in, and setting the cursor in that window to be transparent with XDefineCursor(). However, when you move the mouse again I want to restore the original cursor. Currently I call XUndefineCursor(), but that just sets the cursor to the X cursor. I would like to be able to get the Cursor ID of the cursor in the window the mouse is in before I do the XDefineCursor() to transparent so I can then reset it properly later. Does anyone know of a way to do this? The cursor ID does not seen to be in the X Window Attributes structure, nor is it in any of the window hint structures. Eric Bina ebina@urbana.mcd.mot.com