In the stable Freeglut 2.4.0 release, there is a bug in the mouse cursor
setting code. Setting the cursor to GLUT_CURSOR_INHERIT will terminate
the program with the error message "Failed to create cursor".
The expected behaviour is that the mouse cursor of the current window
should change to that of the parent window.
I attach a patch fixing this bug. Note that calling XDefineCursor with
cursor==None is safe and does exactly the required thing, so the check
was simply in the wrong place.
Vilhelm Sjöberg : Aroo! Aroo! *gnarfle*
vilhelm@... : http://kevan.org/brain.cgi?Vilhelm