Vilhelm,

        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
john.fay@eglin.af.mil
850-729-6330
-----Original Message-----
From: freeglut-bugs-admin@lists.sourceforge.net [mailto:freeglut-bugs-admin@lists.sourceforge.net] On Behalf Of Vilhelm Sjoberg

Sent: Wednesday, September 14, 2005 7:47 PM
To: freeglut-bugs@lists.sourceforge.net
Subject: [Freeglut-bugs] Bug regarding GLUT_CURSOR_INHERIT

Hi!

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.

Cheers,
   Vilhelm

--
Vilhelm Sj÷berg  :  Aroo! Aroo! *gnarfle*
vilhelm@home.se  :  http://kevan.org/brain.cgi?Vilhelm