diff options
Diffstat (limited to 'common/glfw_view.cpp')
-rw-r--r-- | common/glfw_view.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/common/glfw_view.cpp b/common/glfw_view.cpp index 0908786bb6..120faf4df1 100644 --- a/common/glfw_view.cpp +++ b/common/glfw_view.cpp @@ -186,7 +186,9 @@ int GLFWView::run() { glfwWaitEvents(); } - map->stop(); + map->stop([](void *) { + glfwWaitEvents(); + }); return 0; } @@ -199,6 +201,10 @@ void GLFWView::make_inactive() { glfwMakeContextCurrent(nullptr); } +void GLFWView::notify() { + glfwPostEmptyEvent(); +} + void GLFWView::swap() { glfwPostEmptyEvent(); |