From 99d1a4cd9b733334885d38badeff0a55fe59ec49 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Fri, 7 Jun 2024 10:06:34 -0600 Subject: [PATCH] if the Editor is not the current EditingContext, don't do Editor::escape stuff --- gtk2_ardour/editor_mouse.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gtk2_ardour/editor_mouse.cc b/gtk2_ardour/editor_mouse.cc index 110ecf6bc7..4f5ddf0849 100644 --- a/gtk2_ardour/editor_mouse.cc +++ b/gtk2_ardour/editor_mouse.cc @@ -2602,6 +2602,10 @@ Editor::start_selection_grab (ArdourCanvas::Item* /*item*/, GdkEvent* event) void Editor::escape () { + if (this != current_editing_context()) { + return; + } + if (_drags->active ()) { _drags->abort (); } else if (_session) {