Window doesn't close

jocasa wrote on Saturday, April 09, 2011:

Hi!

When pressing the close button of the window it does not close… Nevertheless,
I made it so that when pressing the ‘esc’ key it does.

Can anyone tell me what is happening?

Thanks!

elmindreda wrote on Saturday, April 09, 2011:

Which OS are you using?
Did you set a close callback?

jocasa wrote on Saturday, April 09, 2011:

I use Linux.
Thanks for the hint.
The program had not a close callback. I made one which turned GL_FALSE the
’running’ variable associated with the main ‘while(running)’ loop and
returned GL_TRUE. Now the window closes when the close button of the window
is pressed.

elmindreda wrote on Saturday, April 09, 2011:

That is very strange. If you don’t have a close callback, the window should
just close.

Which version of GLFW is this?