XRecolorCursor(display, cursor, foreground_color, background_color)
      Display *display;
      Cursor cursor;
      XColor *foreground_color, *background_color;


display Specifies the connection to the X server.
cursor Specifies the cursor.
foreground_color Specifies the RGB values for the foreground of the source.
background_color Specifies the RGB values for the background of the source.


The XRecolorCursor() function changes the color of the specified cursor, and if the cursor is being displayed on a screen, the change is visible immediately. The pixel members of the XColor structures are ignored; only the RGB values are used.

XRecolorCursor() can generate a BadCursor error.


See also

XCreateColormap() XCreateFontCursor(), XDefineCursor(), XFreeCursor(), XQueryBestCursor(), "Creating, Recoloring, and Freeing Cursors".
Christophe Tronche, [email protected]