diff --git a/assets/config_menu.rml b/assets/config_menu.rml index e32e950..2cba326 100644 --- a/assets/config_menu.rml +++ b/assets/config_menu.rml @@ -33,7 +33,7 @@ -
+
diff --git a/src/ui/ui_renderer.cpp b/src/ui/ui_renderer.cpp index ff582ff..25c77b3 100644 --- a/src/ui/ui_renderer.cpp +++ b/src/ui/ui_renderer.cpp @@ -797,9 +797,12 @@ struct UIContext { current_document = find_it->second; Rml::Element* window_el = current_document->GetElementById("window"); if (window_el != nullptr) { - window_el->SetClassNames("rmlui-window"); + window_el->SetClassNames("rmlui-window rmlui-window--hidden"); } current_document->Show(); + if (window_el != nullptr) { + window_el->SetClassNames("rmlui-window"); + } } else { current_document = nullptr;