From e6bb61b86d4c4cc71a63ad70a934bcf9541cb241 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Mon, 15 Dec 2025 09:59:58 -0700 Subject: [PATCH] in pianorolls, allow note-clicks to select in draw mode, just like the editor --- gtk2_ardour/pianoroll.cc | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/gtk2_ardour/pianoroll.cc b/gtk2_ardour/pianoroll.cc index e7241904b2..92c69f2795 100644 --- a/gtk2_ardour/pianoroll.cc +++ b/gtk2_ardour/pianoroll.cc @@ -856,16 +856,14 @@ Pianoroll::button_press_handler_1 (ArdourCanvas::Item* item, GdkEvent* event, It Editing::MouseMode mouse_mode = current_mouse_mode(); switch (item_type) { case NoteItem: - if (mouse_mode == Editing::MouseContent) { - /* Existing note: allow trimming/motion */ - if ((note = reinterpret_cast (item->get_data ("notebase")))) { - if (note->big_enough_to_trim() && note->mouse_near_ends()) { - _drags->set (new NoteResizeDrag (*this, item), event, get_canvas_cursor()); - } else { - NoteDrag* nd = new NoteDrag (*this, item); - nd->set_bounding_item (data_group); - _drags->set (nd, event); - } + /* Existing note: allow trimming/motion */ + if ((note = reinterpret_cast (item->get_data ("notebase")))) { + if (note->big_enough_to_trim() && note->mouse_near_ends()) { + _drags->set (new NoteResizeDrag (*this, item), event, get_canvas_cursor()); + } else { + NoteDrag* nd = new NoteDrag (*this, item); + nd->set_bounding_item (data_group); + _drags->set (nd, event); } } return true;