I thought this would be easy to find, but a google search has been very unhelpful. Is there a simple api to change the mouse cursor in your X window? (I know in windows you can just call "SetCursor")
+1
A:
Looks like the equivalent of a SetCursor call is XDefineCursor
. You can get a Cursor
id by calling XCreateFontCursor
and passing in one of the shapes from X11/cursorfont.h
.
Troubadour
2010-08-27 12:16:32
There's more details on these at http://tronche.com/gui/x/xlib/pixmap-and-cursor/cursor.html
alanc
2010-08-27 16:48:42