diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2015-01-17 12:40:46 -0500 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2015-06-29 14:18:13 -0400 |
commit | 7592b5d3e1e8d9a9475c8c21f901ef3b72b89dc1 (patch) | |
tree | 5ac1e08fbe53227a907b6eb43e317c5cb5ada934 /gtk2_ardour/editor_selection.cc | |
parent | aefd089b888d088160a00f2769cdfa383e3e67a4 (diff) |
correctly track range selection trim and drag creation w.r.t playback priority
Diffstat (limited to 'gtk2_ardour/editor_selection.cc')
-rw-r--r-- | gtk2_ardour/editor_selection.cc | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/gtk2_ardour/editor_selection.cc b/gtk2_ardour/editor_selection.cc index 135f15da29..5bb777d739 100644 --- a/gtk2_ardour/editor_selection.cc +++ b/gtk2_ardour/editor_selection.cc @@ -30,6 +30,7 @@ #include "control_protocol/control_protocol.h" +#include "editor_drag.h" #include "editor.h" #include "actions.h" #include "audio_time_axis.h" @@ -1031,9 +1032,12 @@ Editor::time_selection_changed () ActionManager::set_sensitive (ActionManager::time_selection_sensitive_actions, true); } - /* propagate into backend */ + /* propagate into backend, but only when there is no drag or we are at + * the end of a drag, otherwise this is too expensive (could case a + * locate per mouse motion event. + */ - if (_session) { + if (_session && !_drags->active()) { if (selection->time.length() != 0) { _session->set_range_selection (selection->time.start(), selection->time.end_frame()); } else { |