XFreeCursor

Syntax

XFreeCursor(display, cursor)
      Display *display;
      Cursor cursor;

Arguments

display Specifies the connection to the X server.
cursor Specifies the cursor.

Description

The XFreeCursor() function deletes the association between the cursor resource ID and the specified cursor. The cursor storage is freed when no other resource references it. The specified cursor ID should not be referred to again.

XFreeCursor() can generate a BadCursor error.

Diagnostics

BadCursor A value for a Cursor argument does not name a defined Cursor.

See also

XCreateColormap() XCreateFontCursor(), XDefineCursor(), XQueryBestCursor(), XRecolorCursor(), "Creating, Recoloring, and Freeing Cursors".
Christophe Tronche, ch@tronche.com