From 6ad3ce7bff70f750df0bc07ff3ccf77db6a22ca0 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Wed, 11 Mar 2020 09:07:28 -0600 Subject: [PATCH] audio clocks that are not editable are not focusable either --- gtk2_ardour/audio_clock.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gtk2_ardour/audio_clock.cc b/gtk2_ardour/audio_clock.cc index 0af9f234d7..1dd8c7b86e 100644 --- a/gtk2_ardour/audio_clock.cc +++ b/gtk2_ardour/audio_clock.cc @@ -109,7 +109,9 @@ AudioClock::AudioClock (const string& clock_name, bool transient, const string& , xscale (1.0) , yscale (1.0) { - set_flags (CAN_FOCUS); + if (editable) { + set_flags (CAN_FOCUS); + } _layout = Pango::Layout::create (get_pango_context()); _layout->set_attributes (normal_attributes);