Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!wuarchive!emory!gatech!bloom-beacon!LARRY.MCRCIM.MCGILL.EDU!mouse From: mouse@LARRY.MCRCIM.MCGILL.EDU Newsgroups: comp.windows.x Subject: Re: Questions about cursors (large crosshairs) Message-ID: <9012061211.AA28045@Larry.McRCIM.McGill.EDU> Date: 6 Dec 90 12:11:27 GMT Sender: daemon@athena.mit.edu (Mr Background) Organization: The Internet Lines: 35 > Well, first of all, you are not initializing your pixmap. This is true. > Also, you are not initializing your foreground in tmp_gc. This must > be set to 1 [...]. Also true. > Also, is it not an error to free the cursor before the window that is > using it is destroyed? I don't know but I am just wondering. It is not an error. From the Xlib document: 3.2. Window Attributes ... 3.2.10. Cursor Attribute The cursor attribute specifies which cursor is to be used when the pointer is in the InputOutput or InputOnly window. You can set the cursor to a cursor or None (default). If you set the cursor to None, the parent's cursor is used when the pointer is in the InputOutput or InputOnly window, and any change in the parent's cursor will cause an immedi- ate change in the displayed cursor. By calling XFreeCursor, the cursor can be freed immediately as long as no further explicit reference to it is made. der Mouse old: mcgill-vision!mouse new: mouse@larry.mcrcim.mcgill.edu