From 6e810a00e453b09950ba9e42dc9087005cc6da34 Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Sun, 4 Nov 2018 00:25:45 +0000 Subject: [PATCH] Warp mouse from context menu before dragging. Fixes: lp:1798815 * https://bugs.launchpad.net/kicad/+bug/1798815 --- eeschema/onrightclick.cpp | 3 +++ eeschema/schedit.cpp | 2 ++ 2 files changed, 5 insertions(+) diff --git a/eeschema/onrightclick.cpp b/eeschema/onrightclick.cpp index 9d06c96fe0..b6efb49592 100644 --- a/eeschema/onrightclick.cpp +++ b/eeschema/onrightclick.cpp @@ -148,6 +148,9 @@ bool SCH_EDIT_FRAME::OnRightClick( const wxPoint& aPosition, wxMenu* PopMenu ) // If the clarify item selection context menu is aborted, don't show the context menu. if( item == NULL && actionCancelled ) return false; + + if( item ) + SetCrossHairPosition( item->GetPosition(), false ); } // If a command is in progress: add "cancel" and "end tool" menu diff --git a/eeschema/schedit.cpp b/eeschema/schedit.cpp index 233af91dfe..bfde97491b 100644 --- a/eeschema/schedit.cpp +++ b/eeschema/schedit.cpp @@ -413,6 +413,8 @@ void SCH_EDIT_FRAME::OnMoveItem( wxCommandEvent& aEvent ) return; } + GetCanvas()->GetViewControls()->WarpCursor( GetCrossHairPosition(), true ); + switch( item->Type() ) { case SCH_LINE_T: