This can be: return !glfwWindowShouldClose(window);