From b8ebdbc44a8e541131155c50136c5c2879e2170b Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Tue, 26 Apr 2022 00:25:26 +0200 Subject: [PATCH] Fix showing automation lane on touch In the past ui-change event "track_height" was used to force a redraw. This changed in c1fb7bc05de859eb6 --- gtk2_ardour/midi_time_axis.cc | 6 ++++-- gtk2_ardour/stripable_time_axis.cc | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/gtk2_ardour/midi_time_axis.cc b/gtk2_ardour/midi_time_axis.cc index 1c359b171e..319c49a562 100644 --- a/gtk2_ardour/midi_time_axis.cc +++ b/gtk2_ardour/midi_time_axis.cc @@ -628,8 +628,10 @@ MidiTimeAxisView::set_layer_display (LayerDisplay d) uint32_t h = current_height (); update_scroomer_visbility (h, curr_layer_display); - /* If visibility changed, trigger a call to Editor::reset_controls_layout_width() */ - _stripable->gui_changed ("track_height", (void *) 0); + /* If visibility changed, trigger a call to Editor::reset_controls_layout_width() + * by forcing a redraw via Editor::queue_redisplay_track_views () + */ + _stripable->gui_changed ("visible_tracks", (void *) 0); /* EMIT SIGNAL */ } void diff --git a/gtk2_ardour/stripable_time_axis.cc b/gtk2_ardour/stripable_time_axis.cc index 3a0df1ae3a..a507e2b85c 100644 --- a/gtk2_ardour/stripable_time_axis.cc +++ b/gtk2_ardour/stripable_time_axis.cc @@ -211,7 +211,7 @@ void StripableTimeAxisView::request_redraw () { if (_stripable) { - _stripable->gui_changed ("track_height", (void *) 0); /* EMIT_SIGNAL */ + _stripable->gui_changed ("visible_tracks", (void *) 0); /* EMIT_SIGNAL */ } }