From 82e03ac13e90108da502fdc3168bd57b39fe850f Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Wed, 26 Apr 2023 17:19:50 -0600 Subject: [PATCH] fix SNAFU with processor box bindings Bindings were not loaded until after ProcessorBoxen were created, meaning they had no effect (the ProcessorBoxen set their ardour bindings to null). Also handle leave-means-deselect at ProcessorBox level rather than MixerStrip level, to include MonitorSection PB --- gtk2_ardour/ardour_ui_dependents.cc | 3 --- gtk2_ardour/mixer_strip.cc | 4 ---- gtk2_ardour/processor_box.cc | 6 ++++++ 3 files changed, 6 insertions(+), 7 deletions(-) diff --git a/gtk2_ardour/ardour_ui_dependents.cc b/gtk2_ardour/ardour_ui_dependents.cc index f2b24bd473..e8c94d1256 100644 --- a/gtk2_ardour/ardour_ui_dependents.cc +++ b/gtk2_ardour/ardour_ui_dependents.cc @@ -86,9 +86,6 @@ ARDOUR_UI::we_have_dependents () */ mixer->monitor_section().use_others_actions (); - /* Create "static" actions that apply to all ProcessorBoxes - */ - ProcessorBox::register_actions (); StepEntry::setup_actions_and_bindings (); ClipEditorBox::init (); diff --git a/gtk2_ardour/mixer_strip.cc b/gtk2_ardour/mixer_strip.cc index 3feabd17a1..093793a439 100644 --- a/gtk2_ardour/mixer_strip.cc +++ b/gtk2_ardour/mixer_strip.cc @@ -454,10 +454,6 @@ MixerStrip::mixer_strip_enter_event (GdkEventCrossing* /*ev*/) { _entered_mixer_strip = this; - //although we are triggering on the "enter", to the user it will appear that it is happenin on the "leave" - //because the mixerstrip control is a parent that encompasses the strip - deselect_all_processors(); - return false; } diff --git a/gtk2_ardour/processor_box.cc b/gtk2_ardour/processor_box.cc index 8e63fc9549..0a03a4660b 100644 --- a/gtk2_ardour/processor_box.cc +++ b/gtk2_ardour/processor_box.cc @@ -1941,6 +1941,10 @@ ProcessorBox::ProcessorBox (ARDOUR::Session* sess, boost::functiongobj(), 0); } + processor_display.select_none (); + return false; }