summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorMike Morris <michael.patrick.morris@gmail.com>2014-09-30 12:06:51 -0400
committerMike Morris <michael.patrick.morris@gmail.com>2014-09-30 12:06:51 -0400
commit848dccbcae8eb3ddf61b0d9344e150b721a8cf75 (patch)
tree9759641077b36f1c0f3d19a745194b883514b4d3 /common
parent8ebe1bc36033cfbfe9cad5a2a9ef6b5cc803c38e (diff)
downloadqtlocation-mapboxgl-848dccbcae8eb3ddf61b0d9344e150b721a8cf75.tar.gz
make view active/inactive around Map::setup, don't leave active after view.resize()
Diffstat (limited to 'common')
-rw-r--r--common/headless_view.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/headless_view.cpp b/common/headless_view.cpp
index e52bbf8b96..61531bfd65 100644
--- a/common/headless_view.cpp
+++ b/common/headless_view.cpp
@@ -107,13 +107,13 @@ void HeadlessView::resize(uint16_t width, uint16_t height, float pixelRatio) {
}
return;
}
+
+ make_inactive();
#endif
#if MBGL_USE_GLX
x_pixmap = XCreatePixmap(x_display, DefaultRootWindow(x_display), width, height, 32);
glx_pixmap = glXCreateGLXPixmap(x_display, x_info, x_pixmap);
-
- make_active();
#endif
}