From 8cdd2662ba6983b28b2723235848fde6ff09468f Mon Sep 17 00:00:00 2001 From: LuChiChick <1084116302@qq.com> Date: Wed, 20 May 2026 16:25:59 +0800 Subject: [PATCH] Fix node graph moves after focusing on another window which above a node. --- Lib/imnodes-master-b2ec254/imnodes.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Lib/imnodes-master-b2ec254/imnodes.cpp b/Lib/imnodes-master-b2ec254/imnodes.cpp index 7933337..4de0518 100644 --- a/Lib/imnodes-master-b2ec254/imnodes.cpp +++ b/Lib/imnodes-master-b2ec254/imnodes.cpp @@ -578,7 +578,8 @@ void BeginNodeSelection(ImNodesEditorContext& editor, const int node_idx) // Don't start selecting a node if we are e.g. already creating and dragging // a new link! New link creation can happen when the mouse is clicked over // a node, but within the hover radius of a pin. - if (editor.ClickInteraction.Type != ImNodesClickInteractionType_None) + if (editor.ClickInteraction.Type != ImNodesClickInteractionType_None || + !ImGui::IsWindowHovered()) { return; }