Path: utzoo!attcan!uunet!lll-winken!lll-tis!ames!mailrus!tut.cis.ohio-state.edu!ukma!rutgers!ucla-cs!edmond From: edmond@oahu.cs.ucla.edu Newsgroups: comp.windows.x Subject: Cursor Management Message-ID: <18724@shemp.CS.UCLA.EDU> Date: 9 Dec 88 01:42:57 GMT Sender: news@CS.UCLA.EDU Reply-To: edmond@CS.UCLA.EDU (Edmond Mesrobian) Organization: UCLA Computer Science Department Lines: 25 I am a bit confused on the proper management of cursors in client windows. Here is my scenario using a 8 bit plane SUN 3/260 X11 R2: 1) I create a new colormap, and allocate all of the cells to get 256 colors. 2) I create the window. 3) I create a cursor using XCreateFontCursor(dpy, XC_gumby). 4) I recolor the cursor with appropriate colors from my colormap. When the window and associated colormap gets mapped, the cursor is not visible in my window. What's the story? Can I have a colortable with 256 colors AND a cursor with its background/foreground set to colors from my colortable? Or must I just allocate 254 colors and "save" space for my cursor colors? How is the cursor handled from window to window? What transformations occur when the cursor leaves the root window and enters a client window? Any help will be greatly appreciated. thanks, Edmond Mesrobian email: edmond@cs.ucla.edu