I have figured out that the function "glutMainLoopEvent" in
freeglut_main.c (the business starts around line 483) does not get the
window associated with the event before trying to act on it. So with
multiple-window applications we are closing a random window when the user
clicks on the "X" in the upper right-hand corner of a particular window.
This is not a good scene.
I recommend, as a minimum, a "GETWINDOW ( xdestroywindow ) ;" around
line 497, a "GETWINDOW ( xclient ) ;" around line 506, and a "GETWINDOW (
xexpose ) ;" around line 525. The argument to "fghRedrawWindowByHandle"
needs to be changed to "window->Window.Handle" to avoid compiler warnings.
If somebody with a multiple-window application could try these
changes out and, if they work, put them into CVS, I would be most grateful.
John F. Fay
"It is a poverty to decide that an unborn child must die in order that you
may live as you like." - Mother Teresa
Get latest updates about Open Source Projects, Conferences and News.