From dfe3c48d0f831fc89b59996df857389560dd74d2 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Wed, 9 Oct 2024 11:53:15 -0600 Subject: [PATCH] use button.y and modifier state when adding a control point in the midi cue automation lane --- gtk2_ardour/midi_cue_view.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gtk2_ardour/midi_cue_view.cc b/gtk2_ardour/midi_cue_view.cc index 08b9c36d55..0e5b5887bc 100644 --- a/gtk2_ardour/midi_cue_view.cc +++ b/gtk2_ardour/midi_cue_view.cc @@ -313,7 +313,8 @@ MidiCueView::make_merger () bool MidiCueView::automation_rb_click (GdkEvent* event, Temporal::timepos_t const & pos) { - automation_line->add (automation_control, event, pos, 0.5, true); + bool with_guard_points = Keyboard::modifier_state_equals (event->button.state, Keyboard::PrimaryModifier); + automation_line->add (automation_control, event, pos, event->button.y, with_guard_points); return false; }