Thank you for your interest in "freeglut" and for your bug fix.  I believe that the bug has already been fixed in the current CVS version of "freeglut", although it did not make it into the last release.

John F. Fay
Technical Fellow, Jacobs/Sverdrup TEAS Group
-----Original Message-----
From: [] On Behalf Of Vilhelm Sjoberg

Sent: Wednesday, September 14, 2005 7:47 PM
Subject: [Freeglut-bugs] Bug regarding GLUT_CURSOR_INHERIT


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*  :