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 :)
Thanks!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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 :)
Thanks!
Absolutely. Use the close callback.
Ok, but the problem is that the window closes, but the program keeps running... but you can't see it...
Ah, stupid me :D It wasnt closed when you had added the callback :) Thanks alot!