From 769364c117dfa618801fa4d90b74043bb46b8092 Mon Sep 17 00:00:00 2001 From: "Thiago Marcos P. Santos" Date: Wed, 6 May 2015 16:04:13 +0300 Subject: Make all GLFWView attributes private --- linux/main.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'linux') diff --git a/linux/main.cpp b/linux/main.cpp index 2361c996d6..c295eb18e0 100644 --- a/linux/main.cpp +++ b/linux/main.cpp @@ -23,8 +23,7 @@ std::unique_ptr view; void quit_handler(int) { if (view) { mbgl::Log::Info(mbgl::Event::Setup, "waiting for quit..."); - glfwSetWindowShouldClose(view->window, true); - glfwPostEmptyEvent(); + view->setShouldClose(); } else { exit(0); } -- cgit v1.2.1