Menu

when closing the window

Using GLFW
2007-01-21
2012-11-08
  • Nobody/Anonymous

    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!

     
    • elmindreda

      elmindreda - 2007-01-21

      Absolutely. Use the close callback.

       
    • Nobody/Anonymous

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

       
    • Nobody/Anonymous

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