From a5f6756659af051857dd887ef89cde2e723c1e8c Mon Sep 17 00:00:00 2001 From: WerWolv Date: Fri, 9 Feb 2024 19:42:47 +0100 Subject: [PATCH] impr: Hide window immediately after render loop finishes --- main/gui/source/window/window.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/main/gui/source/window/window.cpp b/main/gui/source/window/window.cpp index 14382863a..92e886783 100644 --- a/main/gui/source/window/window.cpp +++ b/main/gui/source/window/window.cpp @@ -190,6 +190,10 @@ namespace hex { m_lastFrameTime = glfwGetTime() - m_lastStartFrameTime; } + + // Hide the window as soon as the render loop exits to make the window + // disappear as soon as it's closed + glfwHideWindow(m_window); } void Window::frameBegin() {