From 57fa1eac0c918d015ed06c17017efc1f16c64c36 Mon Sep 17 00:00:00 2001 From: TheMode Date: Tue, 11 Mar 2025 07:41:08 +0100 Subject: [PATCH 1/2] Update imgui.h --- imgui.h | 1 + 1 file changed, 1 insertion(+) diff --git a/imgui.h b/imgui.h index 429bb7480..baeaec187 100644 --- a/imgui.h +++ b/imgui.h @@ -1090,6 +1090,7 @@ enum ImGuiWindowFlags_ ImGuiWindowFlags_NoNavInputs = 1 << 16, // No keyboard/gamepad navigation within the window ImGuiWindowFlags_NoNavFocus = 1 << 17, // No focusing toward this window with keyboard/gamepad navigation (e.g. skipped by CTRL+TAB) ImGuiWindowFlags_UnsavedDocument = 1 << 18, // Display a dot next to the title. When used in a tab/docking context, tab is selected when clicking the X + closure is not assumed (will wait for user to stop submitting the tab). Otherwise closure is assumed when pressing the X, so if you keep submitting the tab may reappear at end of tab bar. + ImGuiWindowFlags_NoPosClamp = 1 << 19, // No position clamping to window bounds ImGuiWindowFlags_NoNav = ImGuiWindowFlags_NoNavInputs | ImGuiWindowFlags_NoNavFocus, ImGuiWindowFlags_NoDecoration = ImGuiWindowFlags_NoTitleBar | ImGuiWindowFlags_NoResize | ImGuiWindowFlags_NoScrollbar | ImGuiWindowFlags_NoCollapse, ImGuiWindowFlags_NoInputs = ImGuiWindowFlags_NoMouseInputs | ImGuiWindowFlags_NoNavInputs | ImGuiWindowFlags_NoNavFocus, From 4dafa5b14974ed41d6c1c0e14acab3874e778f3d Mon Sep 17 00:00:00 2001 From: TheMode Date: Tue, 11 Mar 2025 07:41:30 +0100 Subject: [PATCH 2/2] 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);