summaryrefslogtreecommitdiff
path: root/linux
diff options
context:
space:
mode:
authorThiago Marcos P. Santos <thiago@mapbox.com>2015-05-06 16:04:13 +0300
committerKonstantin Käfer <mail@kkaefer.com>2015-05-07 11:01:15 +0200
commit769364c117dfa618801fa4d90b74043bb46b8092 (patch)
treed47059831008a36c81477e7d9e110c0a7145b378 /linux
parent168d7c4f171b44b0e3cd4ef78bc4e6b5e8181953 (diff)
downloadqtlocation-mapboxgl-769364c117dfa618801fa4d90b74043bb46b8092.tar.gz
Make all GLFWView attributes private
Diffstat (limited to 'linux')
-rw-r--r--linux/main.cpp3
1 files changed, 1 insertions, 2 deletions
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<GLFWView> 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);
}