From 4dafa5b14974ed41d6c1c0e14acab3874e778f3d Mon Sep 17 00:00:00 2001 From: TheMode Date: Tue, 11 Mar 2025 07:41:30 +0100 Subject: [PATCH] Update imgui.cpp --- imgui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/imgui.cpp b/imgui.cpp index 26d055dd2..db3d880fa 100644 --- a/imgui.cpp +++ b/imgui.cpp @@ -7389,7 +7389,7 @@ bool ImGui::Begin(const char* name, bool* p_open, ImGuiWindowFlags flags) // Clamp position/size so window stays visible within its viewport or monitor // Ignore zero-sized display explicitly to avoid losing positions if a window manager reports zero-sized window when initializing or minimizing. - if (!window_pos_set_by_api && !(flags & ImGuiWindowFlags_ChildWindow)) + if (!window_pos_set_by_api && !(flags & ImGuiWindowFlags_ChildWindow) && !(flags & ImGuiWindowFlags_NoPosClamp)) if (viewport_rect.GetWidth() > 0.0f && viewport_rect.GetHeight() > 0.0f) ClampWindowPos(window, visibility_rect); window->Pos = ImTrunc(window->Pos);