From ad942b104a80c74c689e0c1b5c016d1870850830 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Thu, 24 Mar 2011 11:48:12 +0000 Subject: [PATCH] Prevent region drags with the middle button in internal edit mode (#3869). git-svn-id: svn://localhost/ardour2/branches/3.0@9199 d708f5d6-7413-0410-9779-e7cbd77b26cf --- gtk2_ardour/editor_mouse.cc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gtk2_ardour/editor_mouse.cc b/gtk2_ardour/editor_mouse.cc index 58e83c5efa..9c1b764985 100644 --- a/gtk2_ardour/editor_mouse.cc +++ b/gtk2_ardour/editor_mouse.cc @@ -1049,6 +1049,11 @@ Editor::button_press_handler_2 (ArdourCanvas::Item* item, GdkEvent* event, ItemT case MouseObject: switch (item_type) { case RegionItem: + if (internal_editing ()) { + /* no region drags in internal edit mode */ + return false; + } + if (Keyboard::modifier_state_contains (event->button.state, Keyboard::CopyModifier)) { add_region_copy_drag (item, event, clicked_regionview); } else {