aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Overlay.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Overlay.cpp b/src/Overlay.cpp
index f8148bf..5ab927d 100644
--- a/src/Overlay.cpp
+++ b/src/Overlay.cpp
@@ -557,6 +557,10 @@ namespace gsr {
mgl_context *context = mgl_get_context();
Display *display = (Display*)context->connection;
+ while(!page_stack.empty()) {
+ page_stack.pop();
+ }
+
if(default_cursor) {
XFreeCursor(display, default_cursor);
default_cursor = 0;