>+ // 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);
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 new_from_ name(gdk_ display_ get_default( ), newType] .hash);
>+ // 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_
>+ GtkCursors[
Doesn't this need to check that hash is non-null?