XDefineCursor(display, w, cursor)
      Display *display;
      Window w;
      Cursor cursor;


display Specifies the connection to the X server.
w Specifies the window.
cursor Specifies the cursor that is to be displayed or None.


If a cursor is set, it will be used when the pointer is in the window. If the cursor is None, it is equivalent to XUndefineCursor().

XDefineCursor() can generate BadCursor and BadWindow errors.


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

See also

XCreateFontCursor(), XRecolorCursor(), XUndefineCursor(), "Changing Window Attributes"
Christophe Tronche, ch@tronche.com