--- DefCursor.c.org 2002-07-14 01:52:58.000000000 +0000 +++ DefCursor.c 2006-02-24 10:44:43.183447832 +0000 @@ -1,8 +1,15 @@ #include "nxlib.h" +Cursor freed_cursor; + int XDefineCursor(Display *dpy, Window w, Cursor cursor) { + if (freed_cursor) { + GrDestroyCursor(freed_cursor); + freed_cursor = 0; + } + // FIXME assumes Cursor is nano-X compatible GrSetWindowCursor(w, cursor); return 1;