From f387cbae12338fae9895255d0c6317b0a6be6f2f Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Sat, 29 Apr 2023 09:57:50 -0600 Subject: [PATCH] amend 82e03ac13e9010 for better leave notify behavior Don't clear the processor box selection when leaving for a non-linearly related widget/window (e.g. a context menu) Note that the deselect is a little buggy but that was true before the referenced commit too. If you move the mouse too fast out of a processor box, then depending on where the mouse stops, no leave notify message is sent --- gtk2_ardour/processor_box.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gtk2_ardour/processor_box.cc b/gtk2_ardour/processor_box.cc index 0a03a4660b..fd741cd1aa 100644 --- a/gtk2_ardour/processor_box.cc +++ b/gtk2_ardour/processor_box.cc @@ -2554,7 +2554,9 @@ ProcessorBox::leave_notify (GdkEventCrossing* ev) gtk_window_set_focus (win->gobj(), 0); } - processor_display.select_none (); + if (ev->detail != GDK_NOTIFY_NONLINEAR && ev->detail != GDK_NOTIFY_NONLINEAR_VIRTUAL) { + processor_display.select_none (); + } return false; }