diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2020-03-11 09:07:28 -0600 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2020-03-11 09:07:28 -0600 |
commit | 6ad3ce7bff70f750df0bc07ff3ccf77db6a22ca0 (patch) | |
tree | ffbba127feb9cb42ac7d3ead1920cd15589c376a /gtk2_ardour/audio_clock.cc | |
parent | 96daa4036a425ff3f23a7dfcba57bfb0f942bec6 (diff) |
audio clocks that are not editable are not focusable either
Diffstat (limited to 'gtk2_ardour/audio_clock.cc')
-rw-r--r-- | gtk2_ardour/audio_clock.cc | 4 |
1 files changed, 3 insertions, 1 deletions
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); |