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; }