Comment 16 for bug 901838

Revision history for this message
In , Karlt (karlt) wrote :

Comment on attachment 580971
Try creating a named cursor before a bitmap cursor

>+ { moz_none_bits, moz_none_mask_bits, 0, 0, NULL }

> newType = MOZ_CURSOR_NONE;
> break;

>+ // If by now we don't have a xcursor, this means we have to make a custom
>+ // one. First, we try creating a named cursor based on the hash of our
>+ // custom bitmap, as libXcursor has some magic to convert bitmapped cursors
>+ // to themed cursors
>+ if (newType != 0xFF) {
>+ gdkcursor = gdk_cursor_new_from_name(gdk_display_get_default(),
>+ GtkCursors[newType].hash);

Doesn't this need to check that hash is non-null?