aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2024-10-27 17:20:14 +0100
committerdec05eba <dec05eba@protonmail.com>2024-10-27 17:20:14 +0100
commitdf98e6ef08499cb1343515ebbd49b89ef6e78e2d (patch)
treee4d4cf916ad76f6e9316f7f485b125ed021e50cd /src
parentcd89668d0c4fabeafe5b65223e58d652b6542519 (diff)
Remove page stacks on hide
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;