From e392b7b52d713955aa192aaea1c5f5478f5184ba Mon Sep 17 00:00:00 2001
From: John Beard <john.j.beard@gmail.com>
Date: Thu, 16 Jan 2025 20:42:13 +0800
Subject: [PATCH] Position interactive: don't allow status popup over the
 dialog

---
 pcbnew/tools/position_relative_tool.cpp | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/pcbnew/tools/position_relative_tool.cpp b/pcbnew/tools/position_relative_tool.cpp
index 027a95a26e..885238595b 100644
--- a/pcbnew/tools/position_relative_tool.cpp
+++ b/pcbnew/tools/position_relative_tool.cpp
@@ -299,6 +299,9 @@ int POSITION_RELATIVE_TOOL::PositionRelativeInteractively( const TOOL_EVENT& aEv
         // second click or mouse up after drag ends
         else if( originSet && ( evt->IsClick( BUT_LEFT ) || evt->IsMouseUp( BUT_LEFT ) ) )
         {
+            // Hide the popup text so it doesn't get in the way
+            statusPopup.Hide();
+
             // This is the forward vector from the ruler item
             const VECTOR2I    origVector = twoPtMgr.GetEnd() - twoPtMgr.GetOrigin();
             VECTOR2I          offsetVector = origVector;
@@ -325,6 +328,8 @@ int POSITION_RELATIVE_TOOL::PositionRelativeInteractively( const TOOL_EVENT& aEv
 
             controls.SetAutoPan( false );
             controls.CaptureCursor( false );
+
+            statusPopup.Popup();
         }
         // move or drag when origin set updates rules
         else if( originSet && ( evt->IsMotion() || evt->IsDrag( BUT_LEFT ) ) )