From ba18c08524cffd3fa03adf49f680f3a80390d61d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Konstantin=20Ka=CC=88fer?= Date: Wed, 17 Sep 2014 15:29:24 +0200 Subject: add a callback to stop() to allow running the current thread's event loop --- common/glfw_view.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'common/glfw_view.cpp') diff --git a/common/glfw_view.cpp b/common/glfw_view.cpp index f53090a000..fb54d55f39 100644 --- a/common/glfw_view.cpp +++ b/common/glfw_view.cpp @@ -183,7 +183,7 @@ int GLFWView::run() { glfwWaitEvents(); } - map->stop(); + map->stop(glfwWaitEvents); return 0; } @@ -192,6 +192,10 @@ void GLFWView::make_active() { glfwMakeContextCurrent(window); } +void GLFWView::notify() { + glfwPostEmptyEvent(); +} + void GLFWView::swap() { glfwPostEmptyEvent(); -- cgit v1.2.1