From de2342945570862cde9d4ab1b3daeebc48b6d379 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Camilla=20L=C3=B6wy?= Date: Thu, 26 Sep 2019 23:31:22 +0200 Subject: [PATCH] Add reminder for why events test is not closing --- tests/events.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/events.c b/tests/events.c index 1eecc4c2..86a63df2 100644 --- a/tests/events.c +++ b/tests/events.c @@ -320,6 +320,12 @@ static void window_close_callback(GLFWwindow* window) printf("%08x to %i at %0.3f: Window close\n", counter++, slot->number, glfwGetTime()); + if (!slot->closeable) + { + printf("(( closing is disabled, press %s to re-enable )\n", + glfwGetKeyName(GLFW_KEY_C, 0)); + } + glfwSetWindowShouldClose(window, slot->closeable); }