Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!ora!bloom-beacon!dont-send-mail-to-path-lines From: bill@cosi.UUCP Newsgroups: comp.windows.x Subject: XGrabPointer behavior Message-ID: <9102051838.AA01400@cosi.UUCP> Date: 5 Feb 91 23:38:16 GMT Sender: daemon@athena.mit.edu (Mr Background) Organization: The Internet Lines: 21 I am trying to write a client which does the following: 1) Grabs the pointer, and allows the user to draw a rubber box on the root window. The boundary of the box is determined by using button press/release events to determine where opposite corners are. 2) Once this box is defined, my program grabs the image within the box (XGetImage) for further processing. The second part is easy. The first part is giving me a headache. The program I am working with currently displays a dummy window (which I would like to get rid of), then does a XGrabPointer and follows the motion events, drawing/redrawing the rubber box as appropriate. This seems to work OK. However, despite the fact that I've done a pointer grab, the button press events are lost unless the pointer is in the client's dummy window. Am I misunderstanding the function of XGrabPointer, or am I missing something more subtle? Also - for my education, I would like to see the source to xwd, but I don't know where to get it. Can anyone tell me where to look that doesn't require ftp?