[comp.windows.x] X Protocol Problems BadCursor in Xaw widget creation

swick@ATHENA.MIT.EDU (Ralph R. Swick) (07/13/89)

You're being tripped up by a bug in XmuCvtStringToCursor.  Since
several messages have appeared about this in the past few weeks,
here's a quick one-line patch that can be applied by those affected:

*** lib/Xmu/StrToCurs.c.R3
--- lib/Xmu/StrToCurs.c
***************
*** 237,243 ****

      for (i=0, cache=cursor_names; i < XtNumber(cursor_names); i++, cache++ ) {
        if (strcmp(name, cache->name) == 0) {
-           if (!cache->cursor)
                cache->cursor =
                    XCreateFontCursor(DisplayOfScreen(screen), cache->shape );
            done(&(cache->cursor), Cursor);
--- 237,242 ----