When closing the window

nobody wrote on Sunday, January 21, 2007:

Hello!
When pressing the X button to close the glfw window, is it possible to make it not closing it?
The reason i want it is that i want a confirmation box to show up that asks if i really want to quit :slight_smile:

Thanks!

elmindreda wrote on Sunday, January 21, 2007:

Absolutely. Use the close callback.

nobody wrote on Sunday, January 28, 2007:

Ok, but the problem is that the window closes, but the program keeps running… but you can’t see it…

nobody wrote on Saturday, February 03, 2007:

Ah, stupid me :smiley: It wasnt closed when you had added the callback :slight_smile: Thanks alot!