summaryrefslogtreecommitdiff
path: root/gtk2_ardour/editor_mouse.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2020-01-17 15:26:01 -0700
committerPaul Davis <paul@linuxaudiosystems.com>2020-01-18 08:49:18 -0700
commit3c00048b0c0dbf3efd17cf04fdc7daa91424e338 (patch)
tree7049bed10f750ba08a0e4769f975a90930dab5db /gtk2_ardour/editor_mouse.cc
parent3fe87b9fa1417cfcf6636ff9bf4c8c2abcb6f796 (diff)
Session::request_locate() takes a tri-valued second argument for "roll-after-locate"
This allows callers to defer logic about auto-play/current rolling state and more to TransportFSM where it can be cnentralized and is less ambiguous
Diffstat (limited to 'gtk2_ardour/editor_mouse.cc')
-rw-r--r--gtk2_ardour/editor_mouse.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk2_ardour/editor_mouse.cc b/gtk2_ardour/editor_mouse.cc
index 22476d5d62..7c17228313 100644
--- a/gtk2_ardour/editor_mouse.cc
+++ b/gtk2_ardour/editor_mouse.cc
@@ -1376,7 +1376,7 @@ Editor::button_press_handler (ArdourCanvas::Item* item, GdkEvent* event, ItemTyp
MusicSample where (canvas_event_sample (event), 0);
snap_to (where);
- _session->request_locate (where.sample, false);
+ _session->request_locate (where.sample, MustStop);
}
switch (event->button.button) {
@@ -2062,7 +2062,7 @@ Editor::scrub (samplepos_t sample, double current_x)
if (scrubbing_direction == 0) {
/* first move */
- _session->request_locate (sample, false);
+ _session->request_locate (sample, MustStop);
_session->request_transport_speed (0.1);
scrubbing_direction = 1;