GLFW should responsible for returning that value when users close the GLFW window(IIRC, either by clicking the [x
] button or pressing Esc
?).
Ahhhhh I understand. That doesn’t work for me, but maybe that’s because I’m using i3wm, which is a bit unusual in that respect.
Thank you!
EDIT: fot future reference, it DOES work with i3wm, you just have to use the keyboard instead of the mouse: Pressing ALT+SHIFT+Q will correctly trigger WindowShouldClose(window)
.
1 Like