From df98e6ef08499cb1343515ebbd49b89ef6e78e2d Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sun, 27 Oct 2024 17:20:14 +0100 Subject: Remove page stacks on hide --- src/Overlay.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') 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; -- cgit v1.2.3