From 9204b2837ebbaa771d318cadf5cb2ea4d35e9fef Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Tue, 16 Sep 2014 12:45:21 -0400 Subject: [PATCH] ArdourButton should call the focus handler of CairoWidget from its button press event --- gtk2_ardour/ardour_button.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gtk2_ardour/ardour_button.cc b/gtk2_ardour/ardour_button.cc index 2390d971dd..f3f7789f46 100644 --- a/gtk2_ardour/ardour_button.cc +++ b/gtk2_ardour/ardour_button.cc @@ -753,6 +753,8 @@ ArdourButton::set_led_left (bool yn) bool ArdourButton::on_button_press_event (GdkEventButton *ev) { + focus_handler (); + if ((_elements & Indicator) && _led_rect && _distinct_led_click) { if (ev->x >= _led_rect->x && ev->x < _led_rect->x + _led_rect->width && ev->y >= _led_rect->y && ev->y < _led_rect->y + _led_rect->height) {