From 02f9b6e361c00edec1aa47c962b2395e28edd1ff Mon Sep 17 00:00:00 2001 From: Ignacio Sanchez Gines <863613+drhelius@users.noreply.github.com> Date: Thu, 14 Nov 2024 15:24:18 +0100 Subject: [PATCH] Fix hidden main window output --- platforms/desktop-shared/gui.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/platforms/desktop-shared/gui.cpp b/platforms/desktop-shared/gui.cpp index 016ba57..b0ca666 100644 --- a/platforms/desktop-shared/gui.cpp +++ b/platforms/desktop-shared/gui.cpp @@ -138,7 +138,8 @@ void gui_render(void) { ImGui::NewFrame(); - ImGui::DockSpaceOverViewport(); + if (config_debug.debug) + ImGui::DockSpaceOverViewport(); gui_in_use = dialog_in_use;