From ee4419003c6c0bf3763afd28736f9ea0e4a0f55a Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Mon, 27 Jan 2025 10:48:19 -0700 Subject: [PATCH] no ghost note in draw mode in midi view if dragging something --- gtk2_ardour/midi_view.cc | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/gtk2_ardour/midi_view.cc b/gtk2_ardour/midi_view.cc index d48ac230e7..219b4865a8 100644 --- a/gtk2_ardour/midi_view.cc +++ b/gtk2_ardour/midi_view.cc @@ -599,15 +599,12 @@ MidiView::button_release (GdkEventButton* ev) bool MidiView::motion (GdkEventMotion* ev) { - if (!_entered_note) { + if (!_editing_context.drags()->active() && !_entered_note && _editing_context.current_mouse_mode() == MouseDraw) { - if (_editing_context.current_mouse_mode() == MouseDraw) { - - if (_ghost_note) { - update_ghost_note (ev->x, ev->y, ev->state); - } else { - create_ghost_note (ev->x, ev->y, ev->state); - } + if (_ghost_note) { + update_ghost_note (ev->x, ev->y, ev->state); + } else { + create_ghost_note (ev->x, ev->y, ev->state); } } @@ -5314,4 +5311,3 @@ EndBoundaryRect::compute_bounding_box() const const double radius = 10. * scale; _bounding_box = _bounding_box.expand (0., 0., 0., radius + _outline_width); } -