From f0aca186ccdb00b8903633c7d88e4327c1ceb333 Mon Sep 17 00:00:00 2001 From: ocornut Date: Tue, 25 Aug 2015 13:35:25 +0100 Subject: [PATCH] Comments --- imgui.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/imgui.cpp b/imgui.cpp index 6510d2d7..ae51ada1 100644 --- a/imgui.cpp +++ b/imgui.cpp @@ -2833,6 +2833,7 @@ ImVec2 ImGui::GetMousePos() return GImGui->IO.MousePos; } +// NB: prefer to call right after BeginPopup(). At the time Selectable/MenuItem is activated, the popup is already closed! ImVec2 ImGui::GetMousePosOnOpeningCurrentPopup() { ImGuiState& g = *GImGui;